Skip to content

ui.router: ng-strict-di breaks templateProvider in $stateProvider.state #1789

@samypr100

Description

@samypr100

I've been trying to load my templates on '.run' and loading them via templateProvider. TemplateProvider never executes if 'ng-strict-di' is set on the application. Took me a long time to track this down to ng-strict-di. Currently unsure what's the problem and why ng-strict-di could affect templateProvider from running with no errors at all the console.

Here's a plunker to show it's not running when ng-strict-di is set:
http://plnkr.co/edit/YJDk8EAx5pM04lZpx4cj?p=preview

Another exact same plunker without ng-strict-di working:
http://plnkr.co/edit/HWC54bDeAa8dZdubMZdL?p=preview

Thanks and please correct me if I'm just horribly wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions