Example of using Observer and Directive
Clone this repo into new project folder (e.g., my-proj).
git clone https://github.com/2union/Angular2DirectiveNStateDemo my-proj
cd my-projInstall the npm packages described in the package.json and verify that it works:
npm install
npm start