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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment