In my AngularJS webapp based on ui-router, I have a state with several views.
I'd like to use the same template/controller (same instance of the controller) in 2 different views with a parameter. I already have the template and the controller.
  .state('home.action', {
    url: '/action',
    views:{
      'criteria@home.action':{
        templateUrl: 'criteria.html'
      },
    }
  })
I would need to have a string parameter with a static value different for the 2 views.
In action.html:
<div ui-view="criteria"/> //with param="criterias1"
<div ui-view="criteria"/> //with param="criterias2"
I'd like to use this param in the criteria.html template.
What is the best solution for implementing this ?
Regards.
 
    