using temlate AngularJS Reference Architecture