+ 1
There is no difference between them. data- prefix is an attribute of HTML5 and we can create custom attributes. So if you want to get advantage of the HTML5 then use the data- prefix. But for Angular there is no difference between:     <input ng-model="user.name" />      and    <input data-ng-model="user.name" />
29th May 2017, 4:57 AM
Elias Papachristos
Elias Papachristos - avatar