Skip to content

Document .state('...', { controller: [] }) #2719

@davidgrenier

Description

@davidgrenier

Hello,

To fix problems with preprocessors mangling variable names, the following works just fine:

    .state('stateName', {
      url: "...",
      templateUrl: '...',
      controller: ['$stateParams', controllerFunction],
      controllerAs: 'vm'
    })

I think it should be documented, I'm far from being comfortable enough to send a pull request on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions