2016-08-22 28 views

回答

1

您可以使用核心http://plnkr.co/edit/?p=preview与所有的@angular库, 调整systemjs.config文件以添加您的特殊库。 它使用最新的RC5,但你可以使用任何。

import { Component } from '@angular/core'; 

@Component({ 
    selector: 'my-app', 
    template: '<h1>My First Angular 2 App</h1>' 
}) 
export class AppComponent { } 

添加您的特殊文件,你就完成了。

+1

我觉得有一种方法可以从Github回购或类似的方式获得Plunker,但是没有找到细节。你知道这种方式吗? –

+0

我不确定这是可能的...你在哪里得到这个想法? – DicBrus

+0

我想我看到这个地方提到。这是一段时间以前。我一直在寻找提示,但看到任何提示。它似乎也是Angular团队从他们的GitHub仓库的例子中以某种方式产生它们,但我不知道如何。 –