Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49170

Adding controller to state in IonicUIRouter doesn't work

$
0
0

@Santthosh1 wrote:

.state('test.account', {
  url: '/account',
  views: {
    'tab5': {
      templateUrl: 'templates/account.html',
      controller: 'AccountController as vm'
    },
    'tab4': {
      templateUrl: 'templates/account.html',
      controller: 'AccountController as vm'
    }
  }
})

This does not bind behavior, I'm not able to access any functions within the controller in my template

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49170

Trending Articles