angularjs - How to get an empty (i.e. no-value) attribute in an HTML element in coffeekup's output? -
i'm trying started angularjs using coffeescript , coffeekup.
angularjs capable of auto-bootstrapping itself when detects ng-app
attribute on html element. according docs, should placed on <html>
or <body>
element. however, try load attribute value, if given, application root module.
when placed on <html>
element example, html should be
<html ng-app>
this output not seem achievable using coffeekup. tried following things:
html 'ng-app': '' #prints <html></html> html '': 'ng-app' #prints <html ="ng-app"></html> html 'ng-app': ' ' #prints <html ng-app=" "></html> (still not wanted)
to clarify: not want following:
html 'ng-app': 'ng-app' #prints <html ng-app="ng-app"></html>
since causes angularjs non-existent root module called ng-app
.
currently, i'm defining empty root module workaround, still don't think coffeekup not capable of.
Comments
Post a Comment