Updates ngdirective.