So, you built an AngularJS app.
You used ng-
attributes everywhere, and now your W3C validation is failing.
You wish you had used data-ng-
instead.
This script will fix them all for you.
.\Fix-AllAngularAttributesForHtml5.ps1 c:\code\myapp\web\Views -TfvcAware -Verbose -PrefixesToQuality @('ng', 'app')
The -TfvcAware
switch will tell the script to mark each changed file as a pending change in TFVC, if you're still stuck with it.
The -PrefixesToQualify
argument lets you specify other custom directives that you might have used.