tools/templates/angularjs/page updated

tests code reviewed
tools/templates/angularjs/resource updated

tests code reviewed