Angular 2 bootstrap function gives error “Argument type AppComponent is not assignable to parameter type Type”

后端 未结 9 832
长情又很酷
长情又很酷 2021-02-01 13:14

Here is my first simple Hello World angular 2 app from Angular 2 quick start guide.

import {Component} from \'angular2/core\';
import {bootstrap} fr         


        
9条回答
  •  滥情空心
    2021-02-01 13:52

    Webstorm 2016.1.3 the solution above works for me

    Settings -> Language & Frameworks -> TypeScript: Enable TypeScript, Use tsconfig.json

    PS: This is the same solution as described before for previous Webstorm version (2016.1.3)

提交回复
热议问题