implement as discussed in https://github.com/FineLinePrototyping/angular...

green