Answer the question
In order to leave comments, you need to log in
Why doesn't ng show work with controller as?
.state('user', {
url: '/user',
controller: 'Profile',
controllerAs: 'vm',
templateUrl: 'app/user/templates/profile.html'
});
function Profile ($scope) {
var vm = this;
vm.securityCheked = true;}
<div class="profile-security" ng-show="vm.securityCheked">
................
Answer the question
In order to leave comments, you need to log in
you are not attentive
change to:
When you write vm as Profile, use vm.bla-bla-bla in templates
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question