@exin/xn-core
v0.0.2
Published
Core for Exin applications(AOT, lazy modules compatible)
Downloads
2
Keywords
Readme
xn-core
Core for Exin applications(AOT, lazy modules compatible)
Table of contents
Some functionality is missing visit wiki-page
Installation
To install this library, run:
$ npm install xn-core --save
Consuming library
You can import library in any Angular application by running:
$ npm install xn-core --save
and then from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { NgxExinCoreModule } from '@exin/xn-core';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify your library as an import
NgxExinCoreModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
SharedModule
If you use a SharedModule that you import in multiple other feature modules, you can export the NgxExinCoreModule to make sure you don't have to import it in every module.
@NgModule({
exports: [
CommonModule,
NgxExinCoreModule
]
})
export class SharedModule { }
Note: Never call a forRoot static method in the SharedModule. You might end up with different instances of the service in your injector tree. But you can use forChild if necessary.
Customize theme
Create a standalone less file named theme.less in src folder, and add the path of it to the list of styles in angular.json file.
"styles": [
...
"src/theme.less"
...
]
Here is an example of theme.less
// -------- import official less file -----------
@import "../node_modules/xn-core/styles/theme.less";
// -------- override less var -----------
@primary-color : #f5222d;
Thank You
Thank You for using the library and support. HAVE A GREAT DAY!
For google
angular 2 permissions, angular 4 permissions, angular permissions, angular 5 permissions ng2 permissions ng permissions ng-permissions ng2-permissions angular2 permissions angular4 permissions angular 5 permissions
License
MIT © Exin