Update ng-directive