eyone-shared-module
v0.0.31
Published
``` import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { SharedModule } from './shared/shared.module'; import { environment } from '../environments/en
Downloads
30
Readme
HOW TO USE SHARED MODULE
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';
import { environment } from '../environments/environment';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
SharedModule.forRoot({ config: environment }), // Passer la configuration ici
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }