ng-weather

Angular Directive which shows weather

Added by: Suhard Damien

GitHub

Repository

ptitdam2001/ng-weather

Stats

Stars: 0

Watchers: 0

Forks: 0

Module Description

ng-weather

Angular Directive which show weather

Environment

Go to project directory

npm install

bower install

npm install -g grunt-cli (if not installed)

grunt production

Example

To display the example, you can execute ./server.sh

If there is a problem, you must install npm and express

node server.js

How to install directive

Add js/weatherWidget.js into html links Inject module 'WeatherModule' into the main application implement the tag '<widget-weather lang="fr" city="montpellier"></widget-weather>'

By default, the language is english.

Available parameters

  • mode : 'complete' by default, if mode="light|lite" then we display a light wersion of the widget
  • lang : the language to display
  • city : what city which we want display its weather
  • city-lat [Optional] : the latitud of the city
  • city-lon [Optional] : the longitud of the city

Module stats last updated: 2015-05-27 01:21:51

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!