Example code for creating self contained widget directives in angular 1.5. 3 web pages will be created. The first page will display all accounts, the second only worker accounts, and the third only supervisor accounts. Each page utilizes the same <widgets-accounts-summary> tag (a widget) to display individual account details.
- Node.js (https://nodejs.org)
- Cygwin (https://www.cygwin.com) Only needed if on windows.
$ git clone https://github.com/delphian/angularjs-widget-example.git
$ cd angularjs-widget-example
$ npm install
$ node server.js
Open your browser to localhost:8082
.