Closed mncvnn closed 7 years ago
Does anyone use $ionicPopup to get data before?
You need to explicitly pass $scope
in controller constructor like below.
export default class SettingCtrl extends Controller {
constructor($scope) {
and then later in you controller methods, you can refer the $scope
as this.$scope
Refer: https://www.npmjs.com/package/angular-es6#controller
@mncvnn The scope should be automatically defined once using angular-ecmascript
's API. I suggest you go on StackOverflow http://stackoverflow.com/questions/tagged/ionic-framework because as you said this is not an issue. I believe in the Ionic community they are very familiar with $ionicPopup and you will have more answers.
Dear all, First of all, sorry to put this here because this is not an issue. But I don't know where to ask. Since my current app is a little twist from this whatsapp, so I hope that there are more expert, more experience developer here to get help.
I'm trying to use $ionicpopup to get input data from user, I've been following the docs from ionic website and stuck at getting data back. Here are my controller:
Here is part of my html file (using Controller as technique).
This is what I got so far, still faced the error that loginData is undefined. Here the doc and examples from Ionic: http://ionicframework.com/docs/api/service/$ionicPopup/
I'm still not so sure about angular-ecmascript, don't know where to get $scope variable.