Skip to main content

Abstract Class

· 2 min read

Abstract classes are used for providing an abstraction to the code to make it reusable and extendable.

Abstract class in C++

It is a class that has at least one pure virtual function (i.e., a function that has no definition). The classes inheriting the abstract class must provide a definition for the pure virtual function.

Ionic 5 setup

· One min read
  1. Install Ionic - Open the command prompt and run npm install -g @ionic/cli

  2. Update the angular cli npm install -g @angular/cli@latest

  3. Create an app ionic start nagTabs tabs syntax: ionic start app types are a. tabs: A tabs based layout b. sidemenu: A sidemenu based layout c. blank: An empty project with a single page

Ionic5 Error:'You have to be inside an angular-cli project

· One min read

PS C:nagTabs> ng test

As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release, which will only support Node 6.9 and greater. This package will be officially deprecated shortly after. To disable this warning use "ng set --global warnings.packageDeprecation=false". You have to be inside an angular-cli project in order to use the test command.

When Breath Becomes Air

· One min read

Today I had completed a book When Breath Becomes Air by Paul Kalanithi a Neurosurgeon. Book covers What makes life worth living in the face of death? What do you do when life is catastrophically interrupted? What does it mean to have a child as your own life fades away?

How to Add Providers in Ionic3+ apps

· One min read

Providers are special classes which decorated with @Injectable decorator. Providers are used to a specific work.  We can organize the code and code can be reused in multiple places e.g in pages, other providers too.

We will added now simple Local StorageProvider by using the command
ionic g provider Storage