christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

futures just template instead of templateUrl #316

Closed navinSing closed 8 years ago

navinSing commented 8 years ago

my resolution strategy just needs a a static template rather than a file.

var fullstate = {
                name: futureState.stateName,
                url: futureState.urlPrefix,
                //templateUrl: futureState.templateUrl,
                template:'<div>hello world</div>'    // NOTE : template instead of templateUrl, don't want to create too many templateUrls ; in my case
            };

            d.resolve(fullstate);

This did NOT worked ..

christopherthielen commented 8 years ago

Hmmm, that should work.

Can you show me more code, or a plunker?

navinSing commented 8 years ago

sorry working .. was due to some other issue ..can close

Regards, Shravan

On 10 May 2016 at 03:18, Chris Thielen notifications@github.com wrote:

Hmmm, that should work.

Can you show me more code, or a plunker?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/christopherthielen/ui-router-extras/issues/316#issuecomment-218000276