0.3.0 • Published 12 months ago

ngx-is-standalone v0.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
12 months ago

Ngx Is Standalone

Is standalone for angular

License MIT

Install

if you use npm:

npm install ngx-is-standalone

if you use yarn:

yarn add ngx-is-standalone

Feedbacks

https://github.com/damingerdai/ngx-is-standalone/issues

Simple Configuration

import { NgxIsStandaloneModule } from 'ngx-is-standalone';

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgxIsStandaloneModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage

import { Component } from '@angular/core';
import { NgxIsStandaloneService } from 'ngx-is-standalone';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {

  public get isStandalone() {
    return this.ngxIsStandaloneService.isStandalone;
  }

  constructor(private ngxIsStandaloneService: NgxIsStandaloneService) { }
}
0.3.0

12 months ago

0.2.0

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago