using angularjs for resource modifications