Difference between javascript variables with var and without var

What is the difference between javascript variables with var and without var keyword In javascript, we see two ways to declare a variable: One is with var keyword

Other way is without var keyword

Let’s try to find out the difference between the javascript variables with var and without var keywords: Talking of…

Continue reading

How to call a function on click in ion-tabs

While using ion-tabs which is a part of Ionic frameowork, I tried to use ion-tab with ng-click to call a function on click in ion-tabs. Here is what the code looked like:

Here’s an Ionic play demo for the same code: Demo1 As you may have experienced in above demo,tabs are not changing. Guessed…

Continue reading

How to detect scroll end event in Ionic to check if user scrolled to bottom of the screen

How to check if user scrolled to bottom of the screen in Ionic $ionicScrollDelegate Service provided by Ionic is an easy way to detect scrolling events in android or iOS if you are using ion-scroll instead of native scrolling in android. Here is how you can use ion-scroll in your application:

Though $ionicScrollDelegate has…

Continue reading