Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import { NgModule, ApplicationRef } from '@angular/core';
  2. import { BrowserModule } from '@angular/platform-browser';
  3. import { FormsModule } from '@angular/forms';
  4. import { HttpModule } from '@angular/http';
  5. import { RouterModule } from '@angular/router';
  6. import { ROUTES } from './app.routes';
  7. import { HomeComponent } from '../index';
  8.  
  9. @NgModule({
  10. bootstrap: [ AppModule ],
  11. declarations: [
  12. AppModule,
  13. HomeComponent
  14. ],
  15. imports: [
  16. BrowserModule,
  17. FormsModule,
  18. HttpModule,
  19. RouterModule.forRoot(ROUTES, { useHash: true })
  20. ]
  21. })
  22. export class AppModule {
  23. }
  24.  
  25. import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  26. import { AppModule } from './index';
  27.  
  28. platformBrowserDynamic().bootstrapModule(AppModule);
  29.  
  30. ng_module_resolver.js:34 Uncaught Error: No NgModule metadata found for 'AppModule'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement