<helper:constant
name="{string}"
value="{string}">
</helper:constant>
Param | Type | Details |
---|---|---|
name | string | The name of the constant |
value | string | The value of the constant |
<helper:constant name="test" value="banana"></helper:constant>
<span>My Constant: {{test}}</span>
angular.module('lightning')
.controller('ExampleController', ['$scope','$twigkit', function($scope,$twigkit) {
$scope.test = $twigkit.getConstant('test','noValue');
}]);
Was this page helpful?