How to extract controllers and views from an embedded application in Ionic?

In the Ionic app, the directory structure shows

Application structure

IN

www> scripts> app.js

is a JavaScript file that contains all the code for the controllers and the views inside it. Only the changes that are reflected in the browser are those that are made in this file.

The controllers and views in the directory structure do not work with anything, since any changes made to them do not reflect in the application, and all of their code in the app.js file gives us the changes we need. Does the whole application run from a single file?

How to make changes made to the directory structure files reflected in the application, and is the app.js file needed?

+6
source share
1 answer

Your controllers and views in the directory structure do not work with any changes made to them, because it is already an embedded application. and you are trying to edit code that is not available to run the application.

First, verify that the application is configured using the gulp command . If so, then you should use the command:

gulp --tasks

It will show all existing tasks that are performed in gulp. Now run the command

gulp default

With this, you can check the changes applied to the controllers in the application.

+2
source

Source: https://habr.com/ru/post/1012594/


All Articles