...and it works!
For the record, it looks like the code below.  This was oddly difficult, 
and a little outside the Angular way of doing things which makes me 
concerned about unit testing, but I'll cross that bridge when I get there.

/* top of app.js file, before any Angular work is done. */
$.ajax({
        url:'http://.../api/assessment',
        type:'GET',
        async:'True',
        dataType:'jsonp'
    }).success(function (data)
        {
            angular.module('myApp').constant('pages', data.pages);

            $('document').ready(function()
            {
                angular.bootstrap(document, ['myApp']);

            })
        });


On Monday, January 20, 2014 10:39:19 AM UTC-8, p. stephen w wrote:
>
> Nice, that does make sense.
>
> Thanks again for the info.
> stephen
>
>
>
>
> On Monday, January 20, 2014 9:58:27 AM UTC-8, Sander Elias wrote:
>>
>> Hi Stephen,
>>
>> here you go: 
>> <https://groups.google.com/forum/#!searchin/angular/configuration$20bootstrap/angular/QQcKjcG18z0/887cmL5hEx0J>
>> https://groups.google.com/forum/#!searchin/angular/configuration$20bootstrap/angular/QQcKjcG18z0/887cmL5hEx0J
>> If you combine my answer(s) with that off Jason, you are in business. 
>>
>> To summarize, the the following steps:
>>
>>
>>    1. get your config using XHR (or jQuery if you have it available)
>>    2. bootstrap your angular manually.
>>    3. use something like 
>>    angular.module('myconfig',[]).const('myConfig',configObjectFromStep1)
>>    4. inject it where needed.
>>    
>> Regards
>> Sander
>>
>

-- 
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/groups/opt_out.

Reply via email to