@isoden/ngx-unless
v1.0.1
Published
An Angular module to add unless syntax to template.
Downloads
8
Readme
ngx-unless
An Angular module to add unless syntax to template.
Installation
npm install @isoden/ngx-unless
Usage
- Import
UnlessModule
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { UnlessModule } from '@isoden/ngx-unless';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
UnlessModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- Use directive
<div *ngxUnless="false">unless is working!</div>