ng-config
Generate Angular constants from POJO
Usage
ng-config
returns a single function that takes an optional options
object
and returns a string.
Example:
var fs = ;var ngConfig = ;var options = constants: hello: 'world' ; var config = ; console;// =>// 'use strict';// angular.module('config', [])// .constant('hello', 'world'); fs;
The module name and template are customisable. See the source the current defaults.
See also
- Need streams? gulp-ng-constant
- Need Grunt support? grunt-ng-constant
Author
© 2014 Tom Vincent git@tlvince.com
License
Licensed under the MIT license.