Also just looking for the pattern that people use to load the new content.
Currently I have a method where I pass in a url and the id of the element
to append data to. If I am listing a specific type of product and they want
more information then I go and grab it and display it below on the page or
if it is more complex display it in a modal window.
Thanks,
George
On Thursday, January 2, 2014 12:14:58 PM UTC-5, Sander Elias wrote:
>
> Hi George,
>
> Well, you have to disable caching of the templates if you want to do this.
> partials are cached by default.
> In your case the simplest solution might be, adding the userid to the
> partial's urls. This will use the caching, for every user. if this isn't
> enough, add a timestamp/version/whatever to the partials.
>
> there are many way's but for simplicity, lets say, that your userID is in
> the $rootScope. (this means it is available everywhere, except in isolated
> scopes!
> then you reference to your pariola like this:
>
> <div ng-include='mypartial.html?userid={{userId}'>
>
> This is out the top of my hat, and completely untested tough, but it
> should work!
>
> 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.