Giter VIP home page Giter VIP logo

ionic-crash-course's Introduction

Ionic Crash Course

Ionic academy crash course in Ionic & Angular & Capacitor

Commands:

Ionic Lab

This will bring up a slightly different view that already shows your potential app inside a nice app container.

ionic lab

Ionic Sync

  • Perform an Ionic build, which compiles web assets
  • Copy web assets to Capacitor native platform(s)
  • Update Capacitor native platform(s) and dependencies
  • Install any discovered Capacitor or Cordova plugins
ionic sync

New Platform

  • Install the Capacitor platform package
  • Copy the native platform template into your project

Android

ionic cap add android

iOS

ionic cap add ios

Build

  • Perform ionic build
  • Copy web assets into the specified native platform
  • Open the IDE for your native project (Xcode for iOS, Android Studio for Android)
ionic cap build

Angular Generator

Pages

ionic g page pages/films
ionic g page pages/people
ionic g page pages/planets

Services

ionic g service services/api
ionic g service services/utils
ionic g service services/favorite

Plugins

Email Composer - Capacitor

  • The plugin provides access to the standard interface that manages the editing and sending an email message.
  • You can use this view controller to display a standard email view inside your application and populate the fields of that view with initial values, such as the subject, email recipients, body text, and attachments.
  • The user can edit the initial contents you specify and choose to send the email or cancel the operation.
npm install cordova-plugin-email-composer
npm install @ionic-native/email-composer
ionic cap sync

Data storage

  • A simple key-value Storage module for Ionic apps.
  • This utility uses the best storage engine available on the platform without having to interact with it directly
npm install @ionic/storage-angular

NGX Logger

  • NGX Logger is a simple logging module for angular (currently supports angular 6+).
  • It allows "pretty print" to the console, as well as allowing log messages to be POSTed to a URL for server-side logging.
npm install --save ngx-logger

Links:

Notes:

Android Java Provider

  • Rename: import android.support.v4.content.FileProvider;

  • To: import androidx.core.content.FileProvider;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.