Skip to content

1.0: Can't inject $transition$ into component's controller? #3110

Closed
@shawnlan

Description

@shawnlan

Trying to route to component, but the following throws an error: Unknown provider: $transition$Provider <- $transition$

.component('adminApplicants',{
    templateUrl:'admin.applicants.html',
    controller:function($http,$transition$){
    }
})

With legacy .controller("SomeCtrl",function($transition$){}), there is no error. Why?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions