Closed mkndn closed 7 years ago
Semantic CSS are not provided by ngSemantic. You need to install semantic it self. It is possible with bower:
bower install semantic
Thank you. i have downloaded the stylesheets. Looks like still the styling is not applied properly. I am using the select component. Please refer the attached images
In systemjs.config.js,
map: {
'ng-semantic': 'node_modules/ng-semantic',
}
packages: {
'ng-semantic': {
main: 'ng-semantic.js',
defaultExtension: 'js'
}
}
and the import i used
import { NgSemanticModule } from "ng-semantic";
My HTML,
<sm-select placeholder="Select ACO" class="fluid" (onChange)="selected($event)"> <option *ngFor="let item of items" [value]="item.id"><span [innerHTML]="item.text"></span></option> </sm-select>
My Apologies. I missed this import
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.js"></script>
This solved the issue.
I used the following npm command to install semantic
npm install ng-semantic --save
But i couldn't find css/scss/less files downloaded inside node_modules/ng-semantic folder.As a result my dropdown is not themed at all.