ionic 4: changing ion-content background does not work

You can use the CSS-Variable –background to change the background of ion-content. Example: ion-content{ –background: #fff url(‘../../assets/images/cover.jpg’) no-repeat center center / cover; } Put this into your components, pages or global scss. For reference see: https://beta.ionicframework.com/docs/api/content#css-custom-properties

How to watch console.logs in ionic emulator?

Just enable the console logs in the emulator. Here my example: > ionic emulate ios –livereload Setup Live Reload Running dev server: http://localhost:8100 Adding in default Ionic hooks Running live reload server: http://localhost:35729 Watching : [ ‘www/**/*’, ‘!www/lib/**/*’ ] Ionic server commands, enter: restart or r to restart the client app from the root goto … Read more

Ionic 2 Images not displaying on device

I had the same issue with relative paths <img src=”https://stackoverflow.com/questions/assets/img/vis_reco.png”> does work with ionic serve / and also with livereload in the emulator (e.g. from src/pages/home/home.html ) But not on the device. Don’t use relative paths for images !!! <img src=”https://stackoverflow.com/questions/42830752/assets/img/vis_reco.png”> works for me with Ionic (v3) and also angular typescript apps. On the device … Read more

Ionic 4: “Loading Controller” dismiss() is called before present() which will keep spinner without dismissing

this is how I solved my issue.. I used a boolean variable “isLoading” to change to false when dismiss() is called. after present() is finished if “isLoading” === false (means dismiss() already called) then it will dismiss immediately. also, I wrote the code in a service so I don’t have to write it again in … Read more

How do you completely remove Ionic and Cordova installation from mac?

BlueBell’s answer is right, you can do it by: npm uninstall cordova ionic Are you planning to re-install it? If you feel something’s wrong which is causing problems then you should update npm and clean npm‘s cache. npm cache clean -f npm install npm -g If problems still persist, I’d suggest re-install of NPM and … Read more