In an Angularjs project, I'm trying to get <a/> to show if $scope.page == 'app'
in my controller $rootScope.page = 'app' as well as $scope.page = 'app' , but when I use the following in my DOM, it does not appear when I am on this page.
<a ng-if="page == 'app'">Show Me</a>
javascript angularjs angularjs-scope
ngplayground
source share