I am trying to get some html to show only on one of the paths in my app in angular, but cant seem to get the ng-if to function correctly.
Here is what I have
In Controller:
$scope.$on('$routeChangeStart', function() {
$scope.appLocation = $location.$$path;
});
HTML:
<div ng-if="{{appLocation}} == '/channels'">
<!-- html to show -->
</div>
What am I doing wrong here, or is there a better way to do this?
Aucun commentaire:
Enregistrer un commentaire