我正在学习这篇教程。
但是我一直收到这个错误:
EXCEPTION: No Directive annotation found on CoursesComponent
我的app.components.ts看起来像这样
import {Component} from 'angular2/core';
import {CoursesComponent} from './courses.component';
@Component({
selector: 'my-app',
template: '<h1>He
我遵循一个关于角转换的好来制作一个向导组件。我有一个Wizard组件,它使用WizardStep组件。我遇到的问题是向导模板(wizard-title)中将要排除的元素是:
Unhandled Promise rejection: Template parse errors:
'wizard-title' is not a known element:
1. If 'wizard-title' is an Angular component, then verify that it is part of this module.
2. If 'wizar
在Ionic2应用程序中,我希望呈现包含在HTML中的<ion-icon>。HTML字符串可以类似于:
public explanation = "To open the menu, click the <ion-icon name='menu'></ion-icon> icon to the top left.";
字符串存储在翻译文件中。在输出时,我知道默认情况下HTML字符串是转义的,我试图输出字符串以防止散列:
<p [innerHTML]="explanation"></p>