TriFused - IT Stuff
Technology, Windows, Linux, and other IT Stuff
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
‹
›
Home
View web version
No comments:
Post a Comment