Button To A Tab

Hello there,

I have tabs structure in my app. I have a button on contents. When clicking this button I want to go my home tab. How can I do this?


This is how I do it:

<a ui-sref="tab.home" class="button button-icon icon ion-ios7-home"></a>

Where my tab is defined like this:

.config(function($stateProvider, $urlRouterProvider) {
  return $stateProvider.state('tab', {
    url: '/tab',
    abstract: true,
    controller: 'TabController',
    templateUrl: 'views/tabs.html'
  }).state('tab.home', {
    url: '/home',
    views: {
      'tab-home': {
        controller: 'HomeCtrl',
        templateUrl: 'views/home.html'