How to use ng-lightning - 2 common examples

To help you get started, we’ve selected a few ng-lightning examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-lightning / ng-lightning / demo / src / app / components / playground / files / app / module.ts View on Github external
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NglModule } from 'ng-lightning/ng-lightning';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './demo';

@NgModule({
  imports: [ BrowserModule, FormsModule, HttpClientModule, NglModule.forRoot() ],
  declarations: [ AppComponent ],
  bootstrap: [ AppComponent ],
})
export class AppModule { }
github ng-lightning / ng-lightning / demo / src / app / app.module.ts View on Github external
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {RouterModule, PreloadAllModules} from '@angular/router';
import {routes} from './app.routing';

import {NglModule} from 'ng-lightning/ng-lightning';

import {AppComp} from './app';


@NgModule({
  imports: [
    BrowserModule,
    RouterModule.forRoot(routes, { useHash: true, preloadingStrategy: PreloadAllModules }),
    NglModule.forRoot(),
  ],
  declarations: [
    AppComp,
  ],
  bootstrap: [AppComp],
})
export class NglDemoModule {}

ng-lightning

Native Angular components and directives for Lightning Design System

MIT
Latest version published 10 months ago

Package Health Score

65 / 100
Full package analysis

Popular ng-lightning functions