Name: ui-leaflet-ng2
Owner: AngularUI
Description: Angular 2 component for Leaflet 1.x (WIP - Help Wanted)
Created: 2016-10-07 22:59:49.0
Updated: 2018-04-27 12:45:05.0
Pushed: 2018-04-25 00:05:21.0
Homepage: https://angular-ui.github.io/ui-leaflet-ng2/docs/
Size: 760
Language: TypeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Angular 2 directive for the Leaflet Javascript Library. This software aims to easily embed maps managed by Leaflet on your project.
Please note the master branch is currently in a “in-progress state” and is not suitable for production use at this point.
To install ui-leaflet-ng2, run:
m install angular-ui/ui-leaflet-ng2#master --save
Once you have published your library to npm, you can import ui-leaflet-ng2 in any Angular application by running:
m install angular-ui/ui-leaflet-ng2#master --save
and then from your Angular AppModule
:
rt { BrowserModule } from '@angular/platform-browser';
rt { NgModule } from '@angular/core';
rt { AppComponent } from './app.component';
mport your library
rt { UiLeafletModule } from 'ui-leaflet-ng2';
odule({
clarations: [
AppComponent
ports: [
BrowserModule,
UiLeafletModule
oviders: [],
otstrap: [AppComponent]
rt class AppModule { }
Once your library is imported, you can use its components, directives and pipes in your Angular application:
You can now use your library component in app.component.html -->
title}}
>
leaflet></ui-leaflet>
https://angular-ui.github.io/ui-leaflet-ng2/docs/
To generate all *.js
, *.js.map
and *.d.ts
files:
m run tsc
To lint all *.ts
files:
m run lint
MIT © Michael Salgado