solved

need to add 

    'ngconstant:development', 

at the top of the test definition

al;


On Monday, January 26, 2015 at 6:58:16 PM UTC-5, Al J wrote:
>
> thanks everyone for ng-constant -- it rocks !!
>
> it also breaks my [default yeoman generated] karma tests
>
> ???
>
> al;
>
>
>
> On Monday, January 12, 2015 at 9:28:55 PM UTC-5, Rakshith Raj wrote:
>>
>> HI Al,
>>
>> Please find comments inline.
>>
>> Happy Coding,
>> Rakshith
>>
>> On Monday, 12 January 2015 20:35:50 UTC+5:30, Al J wrote:
>>>
>>>
>>>>>
>>> Sander: But I can't load the config from the server until after I've 
>>> config'd and know where my server is...
>>>    (and in some cases I do not have anything more than a destination 
>>> server, as in business reporting apps.)
>>>
>>> Rakshith: I use Grunt and am comfortable scripting up changes, Do you 
>>> have ideas about the Angular objects to use to encapsulate and how to use 
>>> Grunt to select which of the alternates to use ? Use grunt-ng-constant
>>>
>>> I'm guessing I'll be building alternate Services for each changeable 
>>> configuration - but how should I structure this in the file-system ?  I 
>>> suppose I could have a config folder as a sibling to the app folder, and 
>>> use grunt-shell to rewrite a symlink from inside the app folder to the 
>>> appropriate config subfolder... use the library from which you pull 
>>> respective service and config.
>>>
>>> Seems like (these days) everytime I try to come up with a scheme for 
>>> something like this that I find out sooner or later that someone already 
>>> wrote a tool to do it...
>>>
>>> Still looking... Yes there is already a tool for this u can use the 
>>> tool and code fast, link 
>>> http://mindthecode.com/how-to-use-environment-variables-in-your-angular-application
>>>  
>>> or this https://www.npmjs.com/package/grunt-environment.
>>>
>>> Al;
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to