My application utilizes a template and several views that are dynamically rendered based on their route:
popApp.controller('HomeCtrl', ['$scope', '$routeParams', '$http', function($scope, $routeParams, $http) {
$scope.showNow = true;
}]);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/signup', {
controller:'HomeCtrl',
templateUrl:'partials/newAccountStage.html'
})
.when('/', {
controller:'HomeCtrl',
templateUrl:'partials/home.html'
});
}]);
Within my template, I have elements that are meant to be displayed most of the time but hidden when certain routes are accessed:
<div ng-show="showNow"></div>
Specifically, when the user navigates to the /signup route, I want to hide certain elements.
What is the most angular-friendly approach to achieve this functionality?