I would like to pass value to another compoment ex: a name of country, and use it on the other compoment I make the link like that and i want to send the value “France” to another compoment (via dataHere) : How can i do that ? Answer in you html file and in your ts file and in your
Tag: ionic-framework
How can I set the scope to a http request in my app?
I would like to know how to set the scope to a http request in my Ionic App. We are using Hapi Framework for the Backend built with Node.JS. I’m working with a team so I don’t have enough knowledge on the server side since I’m working on the Ionic App. Also, I’m setting a Bearer Token to the request
Ionic/Angular HTTP post request not working on android
I used Angular HTTP while testing in the browser and it worked fine, but it doesn’t on an actual mobile device… Apparently HTTP angular doesn’t work on mobile and I had to convert the post request …
Angular doesn’t update view on array push
I have an issue with a function which loads posts with the ionic infinite scroll component. The function works great on other components but in this one, the view doesn’t update when I push new posts …
Ionic pass in variable into library to Initialize firebase with
The solution consists of One Ionic Solution One Library called CoreLib Problem Initialize the firebase module inside the CoreLib with an injected variable from the ionic solution. I can pass in a …
Can Activate Guard for multiple config files not “working” after reload
I have an Ionic app with 2 parts. One main/home and a custom splash screen I’ve made the splash to load all the config files and data that the main app will need. And has to be done before Home starts….
Not sure how to populate an array within a method that has Promises within it
I have a method that performs some basic mathematical calculations in my Ionic app after fetching data from SQLite DB. I want to show these results on a page but the problem is that I am not sure how to put all these calculated values in an object array. I tried following but the editor […]
Javascript – convert value of object to uppercase
I have an object in my Angular.io or IONIC {name:”food panda”, city:”selangor”, phone:”0123456789″} and use the following code but it’s not working: this.restaurant.name.toUpperCase(); I need to …
“ng-click” not working out of “ion-content” in Ionic framework
I have an input box with the ng-model attribute in my ionic based application. The code inside the ion-content tag: And in the footer-bar I have this: The alert result is undefined. NOTE: when I put the button inside the ion-content it works fine. (It means js codes works fine) Any idea? Answer The reason […]
Ionic Framework: $scope is undefined in simple alert
This is my code… I don’t know how to explain but it always say undefined when I enter something on the text box… but $scope.goaltitle = “something” is working on the .controller(); … Answer Short Answer The root cause of this issue is, ion-content does create a prototypically inherited child scope, that’s why goaltitle(primitive type) […]