jeudi 23 mars 2017

Components in Angular2.

Sorry but I can't understand why my brackets tell me that cannot find these modules in my angular2 project. This is my app.module.ts file:

import { NgModule } from 'angular/core'; 
import { BrowserModule } from 'angular/platform-browser'; 
import { AppComponent } from './app.component'; 

@NgModule({ 
        imports: [ BrowserModule ], 
        declarations: [ AppComponent ], 
        bootstrap: [ AppComponent ] 
}) 


export class AppModule { }

And brackets say :

http://ift.tt/2nHSyNU

But the most funny is that I was started this project one week ago and all was perfect, but today brackets tell me that cannot find several modules..

So I decided to re-start again my project and I try to follow this page (NgModules Documentation) but in the second step brackets tell me that cannot find the modules...

Anybody can help me please? Anybody knows why?

Aucun commentaire:

Enregistrer un commentaire