Skip to content

fullstackdb/ionic-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Cordova Ionic Starter

The Cordova Ionic Starter with i18n support.

Dependencies

Before you start develop, make sure that you have installed following stuff

Dependency name Command to check Command to install Documentation
nodejs node -v download node
npm npm -v npm install npm@latest -g npm
cordova cordova -v npm install -g cordova cordova
ionic ionic -v npm install -g ionic cordova ionic

Run app

After instalation dependencies, run following command in your command line:

ionic start myApp super

where myApp - name of your app.

In command line you will see instruction for next steps.

After generating app, you will able to use next commands:

Command Description
ionic serve For run your app in browser
ionic cordova run <platform name> For run your app on device
ionic build For build your app in static files
ionic cordova build <platform name> For build your app for specific OS

Structure

| src
-| app
---| app.component.ts
---| app.module.ts
---| app.scss
---| main.ts
-| assets
---| i18n
---| icon
---| img
-| mocks
-| models
-| pages
-| providers
-| theme
-| index.html
-| manifest.json
-| service-worker.js

Advices

Async code

constructor(private zone: NgZone, private service: ExampleService) {}

this.service.getData().subscribe((data: Data) => {
  zone.run(() => {
    // your async code
  })
})

'Routing'

constructor(private nav: NavController) {}

this.navCtrl.push(ItemDetailPage, {
    item: item
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published