Install
npm install --save-dev a4-util
How to use
For main app module, import it with the forRoot()
method as follow.
import: [
...
UtilModule.forRoot(),
...
]
For other modules, simply import it with the forChild()
method as follow.
import: [
...
UtilModule.forChild(),
...
]
Important!!!
Insert the following line to your app.component.html
if you wish to use CommonService
Sample app.component.html
<h1>
{{title}}
</h1>
...
...
...
<common-com></common-com>