Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgModule, ApplicationRef } from '@angular/core';
- import { BrowserModule } from '@angular/platform-browser';
- import { FormsModule } from '@angular/forms';
- import { HttpModule } from '@angular/http';
- import { RouterModule } from '@angular/router';
- import { ROUTES } from './app.routes';
- import { HomeComponent } from '../index';
- @NgModule({
- bootstrap: [ AppModule ],
- declarations: [
- AppModule,
- HomeComponent
- ],
- imports: [
- BrowserModule,
- FormsModule,
- HttpModule,
- RouterModule.forRoot(ROUTES, { useHash: true })
- ]
- })
- export class AppModule {
- }
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
- import { AppModule } from './index';
- platformBrowserDynamic().bootstrapModule(AppModule);
- ng_module_resolver.js:34 Uncaught Error: No NgModule metadata found for 'AppModule'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement