Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

Cordova Plugins Syntax in Ionic 2

$
0
0

You can call any method in your class from your constructor (or from any method in the class) using:

this.myMethod();

this is like $scope from Ionic 1. Also, you should name your function login() not Login(), it'll still work but typically capitals are used for class names and camel case is used for functions. Don't know if the formatting is just messed up but not sure what you're doing with your joe function, that probably shouldn't be there.


Viewing all articles
Browse latest Browse all 228598

Trending Articles