I've been receiving this error using validator.w3.org as HTML5
"Attribute ng-view not allowed on element div at this point"
how can I solve this problem passing a ng-view through a div ?
<div ng-view></div>
I've been receiving this error using validator.w3.org as HTML5
"Attribute ng-view not allowed on element div at this point"
how can I solve this problem passing a ng-view through a div ?
<div ng-view></div>
It is specified somewhere on AngularJS Site that if you want a valid html you should place data-
before every ng-something
. For you
<div data-ng-view></div>
will make the example valid.
Hope it helps. +1 answer