Posts

How to install Redis as a window service

Step1: First of all Install Redis in your system. Step2: run Bellow command by going to Redis folder redis-server -- service-install   Step3: Now restart your system and Check Redis is working now.

How to change file with cmd on linux

step 1: Go to the directory where file exists then use bellow command to open file sudo vi filename step 2: Press i  to go to edit mode. now update your file step 3: Now press Esc then type  :wq!   to save and exit.

How to access shared folder from other PC on same network

 Go to run (win +r) type in \\ along with IP address of the sharing PC in this case e.g \\192.168.2.4 and press enter. You will get the folder that were shared

how to call angular function inside document.ready or setTimeout

use arrow function like bellow example myFunction() {      console.log('function called'); } Use like bellow $ ( document ). ready (() => { this . myFunction (); });

How to add common api url link to environment page in angular

step1) add url to your environment.ts.   export const environment = { production: false , apiUrl: 'www.localurl.com' }; step2) add same url to your environment.prod.ts export const environment = { production: true , apiUrl: 'www.productionurl.com' }; Now when you build for production like ng build --env=prod it will automatically use production url and when you build for local use like ng build it will use local url.

How to add push notification with ionic capacitor angular app

 Follow the tutorial from official Ionic website. https://capacitorjs.com/docs/guides/push-notifications-firebase 

How to add splash screen and app icon with ionic capacitor angular android app

step 1. first Install  npm install capacitor-resources -g  step 2. add bellow code to your package.json "scripts": { ... "resources": "capacitor-resources -p android,ios" } step 3. Now  Add your  icon.png (1024x1024 px)   and   splash.png (2732x2732 px)  in resources folder. Create new resources folder if its is not exists at the same location where package.json exists. step 4. Now run "npm run resources" command and that's it.