Giter VIP home page Giter VIP logo

ionic3-4_mobiledev_codebook's Introduction

Ionic3-4_MobileDev_Codebook

Start code

  • you get an ionic 3 project, using ionic 3 routing $ ionic start myProject blank

  • you get an ionic 4 project, using angular routing $ ionic start myProject blank --type=angular

  • Preview $ ionic serve vs ionic lab

  • Generate page $ ionic generate $ ionic g page detail

  • Generate service $ ng generate service checklist

  • Template language comes from Angular

    • *ngFor
    • {{ item }}
    • (click)
    • [(banana_in_a_box)]

1️⃣ Navigation

Module: Router or NavCtrl

Source1: week4lecture

Source2: navSpike

  1. constructor(public router: Router, public navCtrl: NavController ) {}
  2. onClick() {this.router.navigateByUrl('/about');}
  3. onClickUsingNavCtrl() { this.navCtrl.navigateForward('/about'); /// another form of navigation!}
  4. gotoSettings(){ this.navCtrl.navigateForward('/settings'); /// another form of navigation!}
  5. Pass Data between pages while navigating - paramter: { path: 'pageTwo/:name', loadChildren...}

2️⃣ Master Details Pattern

Module: ?

Source1: heroSpike

https://paper.dropbox.com/doc/Week-5-Models-Navigation-Params-Injectables-Services-and-the-MasterDetail-Pattern--AOZa0DrVMUmst1LjFOTF6fxVAQ-BdmKIzZI01N81QsU07gKS

  • Hero
    • Name
    • Powers
    • functions to retrieve and modify these
  • HeroManager
    • The list of Heroes
    • functions to get all Heroes, add Heroes, remove Heroes

3️⃣ Promises, Observer and Observables

Module: Observer and Observables

Source1: lab-6-whack-a-mole

https://paper.dropbox.com/doc/Understanding-Callbacks-Promises-and-Observables-without-a-CS-Degree--ASGXPQhX7sBOdq6hPVidYGXGAg-QKFXgYuGQeluvkAlh6cw1

  1. Timestamps
  2. Promise
  3. Score sorting
  4. Images display
  5. Dynamic UI https://umich.instructure.com/courses/235244/files/8875862/download?verifier=7me7augihHgnkDRKTOohAsWX2GDdyuYwWEjqkQwl&wrap=1

4️⃣ Native Integration

Module: Camera, emulator, Ionic Native App

Source1: lab-7-native-integration

5️⃣ CURD & Storage

Module: Storage

Source1: CRUD

Create Read Update Delete

Creating the EntryDataService

  • We can ask Ionic to create a (service) Provider for us using the generate (or g for short) command.
    • $ ionic g provider entry-data-service

This will do a few things for us:

  1. Create a new folder in src called providers
  2. Create a new subdirectory called entry-data-service that contains a single file called entry-data-service.ts
  3. Define the class EntryDataServiceProvider inside entry-data-service.ts, and attach the @Injectable decorator to it.

You will need to do the rest, which includes:

  1. importing EntryDataServiceProvider into app.module.ts.
  2. Adding EntryDataServiceProvider to the providers: array in app.module.ts
  3. Importing EntryDataServiceProvider into home.ts and entry-detail.ts.
  4. Adding a parameter of type EntryDataServiceProvider to the constructors for HomePage and EntryDetailPage.

Now that everything is in place, we can start to implement the service.

6️⃣ Firebase

Module: firebase + install firebase

Source1: simple_firebase

7️⃣ Notification

Source

https://github.com/JaneYum/cordova-plugin-local-notifications

8️⃣ UI

ionic3-4_mobiledev_codebook's People

Contributors

janeyum avatar

Watchers

 avatar

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.