Skip to main content

17 posts tagged with "Ionic"

View All Tags

Component Library With Ionic+Angular

· 3 min read

1. Summary

A component library is a collection of logically group components so that one can explore, select components and helps in maintaining consistent design across projects. nag-ionic-lib built using following components.

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.

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

FontAwesome in ionic3+ apps

· One min read

Steps

  1. Install Font-Awesome
    npm install font-awesome --save

  2. Create a config folder at root and create a file custom.copy.config.js
    config/custom.copy.config.js