I have something at https://github.com/stu-salsbury/angular-couch-potato as
well -- can't recall if I posted it to this thread before.

But the reason I'm writing is to challenge all of us who have done
something like this to take an additional step which I don't think we have
yet done....

Let's figure out how to dump lazily loaded components and get them back
again when needed.  The use case is essentially that of a CMS or other
system that could potentially have many, many components, perhaps coming
from places that weren't even envisioned when the system is launched --
letting a framework load **and unload** components when needed and when no
longer needed.

We can null out the Angular components easily enough, but RequireJS doesn't
really support this -- you can null out a module, but it, AFAIK, will still
think of the module as being loaded.  So some ideas:

1) patch RequireJS to support dumping its definition of a module in such a
way that it truly forgets that it already got a definition for it
2) work around it somehow by playing with RequireJS paths so that it at
least *thinks* it's downloading a new module

Anyone up for it?




On Fri, Dec 20, 2013 at 9:39 AM, Jonas Rabbe <[email protected]> wrote:

>
> Thank you for sharing the information you have gathered. I'll try and
> document our combination of RequireJS and AngularJS for a real world
> application at radius.com over the holidays.
>
>
> On Fri, Dec 20, 2013 at 7:35 AM, Robert Jones <[email protected]
> > wrote:
>
>> This looks very promising. Just an FYI, your github example project
>> refers to a lib directory that doesn't exist in the repo.
>>
>>
>> On Wednesday, December 18, 2013 1:00:37 AM UTC-7, Marcos Lin wrote:
>>>
>>> The latest on this topic is that lazy loading of AngularJS module is
>>> only going to happen in 2.0 release as per post from Brad:
>>> https://plus.google.com/u/0/+BradGreen/posts/ae4b2tmNQvu
>>>
>>> In the meantime, check out angularAMD that I created to solve my need to
>>> integrate AngularJS and RequireJS:
>>> http://marcoslin.github.io/angularAMD/<http://marcoslin.github.io/angularAMD/#/home>
>>>
>>> On Wednesday, 11 December 2013 14:07:10 UTC+1, Schuler Manuel wrote:
>>>>
>>>> any news?
>>>>
>>>> On Sunday, June 30, 2013 1:40:49 AM UTC+2, David Driscoll wrote:
>>>>>
>>>>> I was watching the meetup video on Angular 1.2 and beyond, and at
>>>>> around 55:00, the question is asked about angularjs and requirejs.  Misko
>>>>> and Brad drop a bomb that RequireJS is going to replace angular.module, 
>>>>> are
>>>>> there any more details about how this integration will work?
>>>>>
>>>>> http://www.youtube.com/watch?v=W13qDdJDHp8&feature=player_
>>>>> detailpage#t=3301s
>>>>>
>>>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "AngularJS" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/angular/4-otp3gTz5s/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/4-otp3gTz5s/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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