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
    };
Posted by Lawrence Billinghurst at 10:10 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Lawrence Billinghurst
View my complete profile

Blog Archive

  • ►  2025 (1)
    • ►  March (1)
  • ►  2024 (3)
    • ►  June (2)
    • ►  March (1)
  • ►  2023 (7)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2022 (18)
    • ►  December (11)
    • ►  October (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2021 (4)
    • ►  November (1)
    • ►  January (3)
  • ►  2020 (8)
    • ►  December (2)
    • ►  September (1)
    • ►  March (2)
    • ►  February (1)
    • ►  January (2)
  • ►  2019 (12)
    • ►  December (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (5)
    • ►  July (2)
    • ►  April (1)
  • ►  2018 (1)
    • ►  December (1)
  • ▼  2016 (8)
    • ▼  April (4)
      • Angular Logic
      • Useful Docer Commands
      • Docker and Node.JS
      • GitHub The Basics
    • ►  March (4)
Simple theme. Powered by Blogger.