Ionic 3 shopping list application with full CRUD functionality using firebase2. The application is integrated with Firebase database to store the data.
Firebase Database Rules:
Change the defaault firebase database rules in order to allow anybody to read and write from the database
ion-content {
background-image: url('/assets/img/NAME_OF_THE_IMAGE_FILE.jpg');
}
Reference link: https://stackoverflow.com/questions/38566022/ionic-2-adding-a-background-image-to-a-page
$npm install
AngularFire2 is an official Angular library for Firebase.
To install AngularFire 2
$npm install angularfire2 firebase --save
$ionic serve
$ionic serve --lOR
$ionic lab
To add android platform
$ionic cordova platform add android
To add iOS platform
$ionic cordova platform add ios
$ionic cordova build android
While building an APK you might yet an error => Module not found: Error: Can't resolve 'promise-polyfill'
Refer this issue => ionic-team/ionic-app-scripts#1001
Solution: In the project directory run the following command,
$npm install promise-polyfill --save-exact
and then run the command
$ionic cordova build android
I encountered this problem when executing command $ionic serve, everytime I changed few things in my code.
Solution: The only solution is re-executing the command $ionic serve
Reference link: https://forum.ionicframework.com/t/ionic-serve-error-cannot-read-property-call-of-undefined/97858/9