Saturday, April 16, 2016

Angular Logic

Anglar JS


Check if null

  app.controller('myController', function(){
    this.current = 0;
    this.setCurrent = function(newValue){
      this.current = newValue || 0;    < - this checks for null
    };

No comments:

Post a Comment