我的自定义组件中的模板无法在app.component.html中运行

时间:2017-12-21 09:01:03

标签: angular

2 个答案:

答案 0 :(得分:0)

你可能应该收到警告:

TfidfVectorizer

因为你在组件中有大写字母C:

tfidf_vectorizer = TfidfVectorizer(vocabulary=terms) # add your other params here

请尝试:

WARNING in ./src/app/Courses.Component.ts There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-semantic. Use equal casing.

答案 1 :(得分:0)

我认为这对于一个组件来说已经足够了。你能在浏览器的日志中显示你的错误吗?在Angular2 +中,您应该使用ng generate component componentname创建一个组件,请参阅here