This library contains native Angular 2 components and directives written from scratch in TypeScript using the Lightning Design System CSS framework.
This release is a developer preview. We are looking for community help to find and fix bugs, improve demo site and create new components.
Install through npm
:
npm install --save ng-lightning
If you use SystemJS to load your files, you may want to use our bundle file through unpkg
<script src="https://unpkg.com/[email protected]/ng-lightning.bundle.js"></script>
Unfortunately, IE11 does not support two important features.
-
SVG External Content, used to load SVG icons from a spritemap. In order to support this, you will need to use a small script called svg4everybody.
Available on npm cdn here. -
Element.classList
on SVG elements, used by Angular'srenderer.setElementClass
. See here for more information. Use classList.js shim, available on npm cdn here.
Typically, these shims should be placed within the <head>
element.
Note: To prevent considerable rendering load in IE11, utilize core-js
over es6-shim
. See the Angular 2 documentation for more information.
http://ng-lightning.github.io/ng-lightning/
We are always looking for high quality contributions! Please check the CONTRIBUTING.md doc for guidelines.
Development is supported by ZuluTrade.
We support the same browsers and versions supported by both Angular 2 and Salesforce's Lightning Design System.
Cross browser/environment testing is performed through Saucelabs.