angularjs - boilerplate update