【发布时间】:2016-04-23 11:25:33
【问题描述】:
我正在尝试使用类型脚本学习 ionic 2。您能告诉我如何 使用 typescript 在 ionic 2 中显示 hello world 文本? 我能够以角度 2 显示 hello world 文本。我想使用 ionic 2 并显示文本。
这是我使用的代码 angular 2 http://plnkr.co/edit/xd0TbWO5deHB7xTjXibR?p=preview
能否请您告诉 ionic 2 需要包含哪些库才能显示文本。 这是离子 2 文档 http://ionicframework.com/docs/v2/getting-started/tutorial/ // 代码在这里
import {bootstrap} from 'angular2/platform/browser';
import {Component} from 'angular2/core';
@Component({
selector:'app',
template:'<div>hello</div>'
})
class App{}
bootstrap(App)
请分享一下
【问题讨论】: