You can use templateProvider instead of templateUrl inside the definition of "lower" to specify a function that will built and return the HTML you want for that part of the view.
On Fri, Sep 19, 2014 at 2:26 PM, mark goldin <[email protected]> wrote: > Let's say I have a following state definition: > app.config(function ($stateProvider, $urlRouterProvider) { > $stateProvider > .state('first', { > url: '/first', > views: { > upper: { > templateUrl: 'app/views/partial1.html' > }, > lower: { > templateUrl: 'app/views/partial2.html' > } > } > }) > }); > > What I'd like to do is to have lower view with a dynamic template meaning > I can load different views into it. Is that possible? > > Thanks > > -- > 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. > -- R. Mark Volkmann Object Computing, Inc. -- 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.
