Skip to content

Instantly share code, notes, and snippets.

/app.module.ts Secret

Created January 15, 2018 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9f0fc00ed223b3032dc3cddda30e9266 to your computer and use it in GitHub Desktop.
Save anonymous/9f0fc00ed223b3032dc3cddda30e9266 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { AdDirective } from './ad.directive';
import { AdBannerComponent } from './ad-banner/ad-banner.component';
import { UnodepieraComponent } from '@publishers/unodepiera/unodepiera.component';
import { CursosdesarrollowebComponent } from '@publishers/cursosdesarrolloweb/cursosdesarrolloweb.component';
import {AdService} from "./ad.service";
@NgModule({
declarations: [
AppComponent,
AdDirective,
AdBannerComponent,
UnodepieraComponent,
CursosdesarrollowebComponent
],
imports: [
BrowserModule
],
providers: [AdService],
bootstrap: [AppComponent],
//carga imperativa, no declarativa
entryComponents: [CursosdesarrollowebComponent, UnodepieraComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment