mlegenhausen / grunt-ng-constant

Plugin for dynamic generation of angular constant and value definition modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to write a constant to an already existing module and not create a new one?

Avien opened this issue · comments

Instead of:

angular.module('config', [])
.constant('title', 'grunt-ng-constant-beta')
.constant('debug', true)

I want to generate:

angular.module('config')
.constant('title', 'grunt-ng-constant-beta')
.constant('debug', true)

Thanks

Just found out myself that it is possible by using deps:false