Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49308

Removing of unnecessary page from ionic 2 project with considering of references

$
0
0

@lado wrote:

Hello,

I’m trying to figure out, how properly remove unnecessary page from ionic2 project, because deleting of directory causes broken references.

If page directory is page2, and page1.ts loads page2.html from function this.navCtrl.push(page2);, after deleting of page2 directory, shows "Ionic serve error: Error: ENOENT: no such file or directory" despite editing of imports in app.component.ts, app.module.ts or main.js, but In my case appears also in another way, even if I restore removed page2 directory content, without any using, just to avoid error. Function in page1.ts now loads page3.html this.navCtrl.push(page3); but sometimes after saving the code during the work, loads restored page2.html, which is not attached to function or anything else

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>