Hello everyone!
Im trying to change my nested right side view with the header bar buttons.
How you guys think i could acomplish that?


Here’s my States config:
angular.module('starter', ['ionic', 'ngTouch', 'ui.router'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('app', {
url: "/app",
abstract: true,
templateUrl: "templates/side-menu.html",
controller: 'Main'
})
.state('app.main', {
url: "/main-screen",
views: {
'menuContent' :{
templateUrl: "templates/main-screen.html",
controller: "GridController"
},
'grid_right@app.main' :{
templateUrl: "templates/partials/products-grid.html",
controller: "GridController"
},
'grid_left@app.main' :{
templateUrl: "templates/partials/receipt.html"
},
'teste@app.main' :{
templateUrl: "templates/partials/teste.html"
}
}
});
$urlRouterProvider.otherwise('/app/main-screen');
})
My main-screen.html
<div class="bar bar-header bar-dark">
<h1 class="title">bar-dark</h1>
<button ng-click="options('grid_right');">Grid</button>
<button ng-click="options('teste');">Teste</button>
</div>
<ion-content class="has-header" ng-controller="Main" scroll="false">
<div id="grid" class="left-side" style="border-right: 1px solid #DFE1E1; background-color:white; height:200px;" ui-view="grid_left"></div>
<div class="container main-grid right-side" ui-view="grid_right"></div>
</ion-content>
Does someone has an ideia on how i could do it?
Thanks alot!