i'm new in angular 2 , i'm following "the hero" tutorial.
need import these modules:
import { ngmodule } '@angular/core'; import { browsermodule } '@angular/platform-browser'; import { formsmodule } '@angular/forms';
i start using angular2 cli (easy way create app) when i'm trying import these got error like:
error: typescript found following errors:"...node_modules/@angular/core/index"' has no exported member 'ngmodule'.
how can include ?
assumption installed angular-cli via
npm install -g angular-cli
that version of cli still based upon rc4, if you'd use updated (current) version need install via:
npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@webpack
and once you've done that, can re-create project , use code have above walk through tour of heroes demo.
Comments
Post a Comment