Angular2 Error - Is platform module (BrowserModule) included?

前端 未结 1 666
一生所求
一生所求 2021-01-12 08:32

I\'m just trying to run a simple index.html page in Angular2, but its showing me an error in zone.js in console:

    Unhandled Promise rejec         


        
相关标签:
1条回答
  • 2021-01-12 09:34

    You are missing the

    import { BrowserModule } from '@angular/platform-browser';
    

    Add to your app module

    @NgModule({
    imports: [
        BrowserModule,
    ]
    ...})
    
    0 讨论(0)
提交回复
热议问题