Set AngularJS mechanism