I wan to create a html tag: <div ng-app></div>, I try to use document.createElement('div') to create the div tag, but I don't know how to add ng-app to the div tag.
The function element.setAttribute(key, value) doesn't fit my flavor here.
element.setAttribute(key, value)function doesn't fit your flavor?