如何将angularjs组件与angular2一起使用

时间:2017-02-17 12:01:53

标签: angular angular-material2

Angular material尚未开发,并且尚未准备好所有组件,目前正在使用angular2-webpack-starter进行网站开发,并想知道如何使用angularjs中的组件进行开发。

由于

更新:使用autocoplete时收到如下错误

```


 Unhandled Promise rejection: Template parse errors:
Can't bind to 'mdAutocomplete' since it isn't a known property of 'input'. ("red box</h1>
  <md-input-container floatPlaceholder="never">
    <input mdInput placeholder="State" [ERROR ->][mdAutocomplete]="reactiveAuto" [formControl]="stateCtrl">
  </md-input-container>

"): PracticeComponent@4:39
There is no directive with "exportAs" set to "mdAutocomplete" ("
  </md-input-container>

  <div md-autocomplete [ERROR ->]#reactiveAuto="mdAutocomplete" [displayWith]="displayFn">
    <md-option *ngFor="let state of reactiv"): PracticeComponent@7:23
Can't bind to 'displayWith' since it isn't a known property of 'div'. ("
  </md-input-container>

  <div md-autocomplete #reactiveAuto="mdAutocomplete" [ERROR ->][displayWith]="displayFn">
    <md-option *ngFor="let state of reactiveStates | async" [value]="state"): PracticeComponent@7:54 ; Zone: angular ; Task: Promise.then ; Value: 
```

0 个答案:

没有答案