Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created August 5, 2013 18:22
Show Gist options
  • Save leandromoreira/6158173 to your computer and use it in GitHub Desktop.
Save leandromoreira/6158173 to your computer and use it in GitHub Desktop.
//my initial config
app.config(["$routeProvider", function($routeProvider){
$routeProvider
.when('/list_streams', {
templateUrl: 'assets/angular/views/target_bitrates.html',
controller: 'TargetBitratesCtrl'
})
.when('/transmissions',{
templateUrl: 'assets/angular/views/create_live_media.html',
controller: 'TargetBitratesCtrl'
})
.otherwise({redirectTo: '/list_streams'});
}]);
//views
<li><a href="/#list_streams">List streams</a></li>
<li><a href="/#transmissions">Transmissions</a></li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment