The||operator can be used to fill in default values:
var middle = stooge["middle-name"] || "(none)";
var status = flight.status || "unknown";
My road to build usable AngularJS app with WebAPI. Here are some tips and tutorials which I used to solve my problems and to keep solutions on one place so I can easily find it when needed.
No comments:
Post a Comment