How can I call a controller's function from my browser's console, when I do not use the $scope
syntax for my functions but the controller as
syntax. There is no ng-controller
injected so I cannot use the method proposed at this SO question. I use the $stateProvider
of ui-router
to set my controller to a view like so:
$stateProvider.state('contacts', {
template: ...,
controller: 'ContactsCtrl as contact'
})