This file contains hidden or 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
angular.module('plunker', []) | |
.controller('MainCtrl', function($scope) { | |
$scope.myModel = {}; | |
$scope.myModel.to = "init-"; | |
//AT THE END OF EXECUTION | |
//What i expect to have is something like | |
$scope.myModel.to = "init-something-to-slug"; | |
$scope.myModel.from = "Something to slug"; |
This file contains hidden or 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
// Product page template | |
.state("product", { | |
url: "/product/:param", | |
templateUrl: "modules/products/product.html", | |
data: {pageTitle: 'Product'}, | |
controller: "ProductController" | |
}) | |
.state("product.base", { | |
url: "/base", |
This file contains hidden or 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
if($rootScope.securityRole){ | |
console.log($rootScope.securityRole); | |
console.log(authService.isUrlAccessibleForUser(next.url)); | |
if(authService.isUrlAccessibleForUser(next.url)){ | |
$location.path('/authError'); | |
} | |
} |
NewerOlder