I amy trying to populate a ui-sref link with a parameter dynamicall:
ui-sref="business({id:{{business.busId}}})" 
But this does not work.
Any help would be appreciated!
I amy trying to populate a ui-sref link with a parameter dynamicall:
ui-sref="business({id:{{business.busId}}})" 
But this does not work.
Any help would be appreciated!
 
    
    If you define your state like the following state definition:
.state('business', {
  parent: 'dashboard',
  url: '/business/{businessId}',
  controller: 'BusinessController as vm',
  templateUrl: 'business.html'
})
Then you can call the state like <button ui-sref="business({businessId: business.id})"> Click me </button>
From the a controller you can call the state by calling $state like this: $state.go('business',{businessId: business.id});
You can read more about Using Parameters in Links here
