Snippet Params:
Snippet Params:
Example
<link data-lift="FoBo.AJSResources.injectCSS?resources=ng-grid"></link>
Result: This example will result in the following being injected in place of the snippet invocation:
<link href="/classpath/fobo/ng-grid.css" rel="stylesheet" type="text/css" />
v1.3
Snippet Params:
Snippet Params:
Example
<script data-lift="FoBo.AJSResources.injectJS?resources=angular,angular-animate"></script>
or making angular.js implicit.
<script data-lift="FoBo.AJSResources.injectJS?resources=angular-animate"></script>
Result: This example will result in the following being injected in place of the snippet invocation:
<script src="/classpath/fobo/angular.js" type="text/javascript"></script> <script src="/classpath/fobo/angular-animate.js" type="text/javascript"></script>
v1.3
AJSResources Snippet
This snippet class lets you inject FoBo Angular resources into your templates. Instead of hand write the resource tags you can use this helper snippet to inject it for you.
Example Invoke with
data-lift="FoBo.AJSResources.functionName?paramName=paramValue&...."
For more examples see the individual transform functions.
v1.3