Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var vm = this;
  2.  
  3. vm.annualConsumption = null;
  4. vm.calorificVal = null;
  5. vm.zNumber = null;
  6. vm.checkIfAllValuesAreSet = checkIfAllValuesAreSet;
  7.  
  8.  
  9. function checkIfAllValuesAreSet() {
  10. return vm.annualConsumption && vm.calorificVal && vm.zNumber;
  11. }
  12.  
  13. ng-show="myControllerCtrl.checkIfAllValuesAreSet()"
  14.  
  15. ng-show="vm.annualConsumption && vm.calorificVal && vm.zNumber"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement