Updates the ngdirective snippet.