I have a couple pages that share a layout. I am adding some new pages that are going to be using angular. I am trying to find out how to set it up the template so in the child pages I can add to the html
elements attribute a ng-app='xyz'
.
e.g.
_layout.gsp
<html lang="en" >
would love to just do child.gsp -
<html ng-app='angularApp'>
<meta name="layout" content="layout">
But obv, that doesn't work. Is there any easy way to achieve this ?
Is there a way to use the content pattern? I tried...
//child.gsp
<meta name="angularApp" content="angularApp"/>
//layout.gsp
<html lang="en" <% meta(name: 'angularApp')? "ng-app='${meta(name: 'angularApp')}'":"" %> >
But it just results in nothing...