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