typescript - TS Compile fails silently -
i've included ng2-semantic-ui
in package.json
, version ^0.2.3
, , had component looked this:
import {component} '@angular/core'; import {title} '@angular/platform-browser'; import {hometreecomponent} './tree'; import {userphotocomponent} "./userphoto.component"; @component({ templateurl: 'app/home/index.html', providers: [title], directives: [hometreecomponent, userphotocomponent] }) export class homeindexcomponent { constructor(title: title) { title.settitle('welcome'); } }
which compiles nicely , gives javascript file expected. add import {tab_directives} "ng2-semantic-ui/ng2-semantic-ui";
imports , tab_directives
directives
things go wrong. but, i'm not getting compilation errors tsc
- in fact errorlevel (running node on windows) 0 , prints neither errors or warnings, , other ts files compiled properly.
other files compiled properly, not file. have overlooked something? have added appropriate map
in systemjs config load it, don't think comes play until , unless loads in browser.
i used semantic-ui in non angular-cli project keeping semantic.min.css under resource folder. dont need configure package.json or system.config.js. , show path in index.html. here goes screenshot
now in component need use semantic-ui, code this
@component({ selector: 'app-semantic', template: ` <div class="ui tab" data-tab="first"> first tab </div> <div class="ui tab" data-tab="other"> other content </div> ` })
angular version of project 2.0.0-rc.1
Comments
Post a Comment