Created
April 23, 2014 09:12
-
-
Save bluehallu/11208188 to your computer and use it in GitHub Desktop.
sidemenu demo patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.state('register', { | |
url: "/register", | |
templateUrl: "templates/register.html", | |
controller: 'RegisterCtrl', | |
onEnter: function ($state) { | |
//$state.go('app.playlists'); | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller('RegisterCtrl', function ($scope,$state) { | |
$scope.register = function () { | |
$state.go('app.playlists'); | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button ng-click="register()">Register</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment