对一个简单的概念感到尴尬: declares NavComponent <-- to be used see below exports NavComponent
imports PreRegistrationModule我的(错误)理解是,我应该能够在HowToUseThisProgram.html中使用<
我试图根据用户是否登录(用户服务中导出的param ),在Angular2中更改导航条组件的行为。我刚刚将isLoggedIn设置为返回true。不幸的是,链接没有显示,如下所示:
我在应用程序的其他地方使用UserService作为常规服务,我是否可以将它作为指令使用} from 'angular2/router'
我正在使用Angular2 rc4,目前我可以使用ExtractTextPlugin导入一个css文件。我用的是html-加载程序,没有任何问题。但是,当我试图加载css文件时,我会得到错误:无法找到模块"./app.component.css"或期望'styles‘是一个字符串数组。我该怎么解决这个问题?/app.component.css');
import {NavComponent} f
我有一个应用程序模块和一个功能模块。功能模块中声明了一个名为"AudioPlayerComponent“的组件。我想在应用模块中使用它,但它没有显示。没有错误。@NgModule({ BrowserModule, ReciterModule, // the featuremodule which has the