Skip to content

EliseoPlunker/example-lib-forRoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

example-lib-forRoot

Example lib-forRoot

There're two directories:

  • app-library-example (the library)
  • app-library-use (the app)

It's only a example of how create a library that use forRoot to get the configuration from an enviroment.ts file

To generate the library in local:

ng build app-lib --prod

cd dist
cd app-lib
npm link

To use in the another project

cd c:\app-library-use\src
npm link app-library

And in app.module.ts

   import { AppLibModule} from 'app-lib'

   ...
   imports: [ 
      ...,
      AppLibModule.forRoot({userName: environment.userName})
  ],

About

Example lib-forRoot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published