@sprengnetterat/ng-sprengnetter v2.3.2
📦 Installation
Install @sprengnetterat/ng-sprengnetter with npm or yarn
npm install @sprengnetterat/ng-sprengnetter📃 Styles
Import the sass styles in angular.json:
{
"styles": [
"node_modules/@sprengnetterat/ng-sprengnetter/ng-sprengnetter.scss"
]
}or
Import the pre-built styles in angular.json:
{
"styles": [
"node_modules/@sprengnetterat/ng-sprengnetter/ng-sprengnetter.min.css"
]
}📁 Assets
Add glob pattern to angular.json:
{
"assets": [
{
"glob": "**/*",
"input": "node_modules/@sprengnetterat/ng-sprengnetter/assets/",
"output": "/assets/"
}
]
}🔎 Usage
Import the component modules that you want to use into the app.module.ts file and feature modules.
Taking the following SnIconModule module as an example, first import the component module:
import { NgModule } from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [NzButtonModule],
})
export class AppModule {}Then use the component inside the template:
<sn-icon snName="plus-circle"></sn-icon>⌨️ Development
🔨 Build
Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.
🎯 Unit tests
Run nx test to execute the unit tests via Jest.
Run nx affected:test to execute the unit tests affected by a change.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago