Skip to content

Instantly share code, notes, and snippets.

@jhsu
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save jhsu/9479447 to your computer and use it in GitHub Desktop.

Select an option

Save jhsu/9479447 to your computer and use it in GitHub Desktop.
<a ui-sref="dashboard.child">show the child view</a>
<div ui-view></div>
$stateProvider
.state('dashboard', {
url: '/dashboard',
controller: 'DashboardCtrl',
templateUrl: '/templates/dashboard.html'
});
$stateProvider
.state('dashboard.child', {
url: '/child',
controller: 'DashboardChildCtrl',
templateUrl: '/templates/dashboard.child.html'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment