In the last recipe, we created an Instagram clone layout using tab templates. We created the layout using the components of the Ionic UI. We skipped the use of AngularJS in our app. In this recipe, we are going to explore and take advantage of AngularJS's controllers, router, and models in our Ionic application.
To start taking advantage of AngularJS's features in an Ionic application, follow these steps:
ionSnapapp that we created in the previous recipe. Open the terminal, change the directory to
ionSnap, and run the Ionic server:
cd path/to/ionSnap ionic serve
www/js/app.jsand examine it. The
app.jsis the main entry of our app. There is a bunch of configurations, but ...