Capacitor Full App - Ionic Angular
  • What is Capacitor Full App - Ionic Angular?
  • Understand the Frameworks
  • Template Highlights
  • Setup
    • Initial Setup
  • Running the app
  • Building App on device
  • Deploying app as PWA
    • Deploy PWA on Firebase
  • How to use this template
    • Two way to use this Template
  • Removing a Page / Component
  • Removing a plugin
  • Extra
    • Troubleshooting
    • FAQ
  • Changelog
  • Features
    • Startup Features
      • Layouts
      • Firebase
      • Addons
        • Globalization - Translation
        • Content Loaders
        • Custom Fonts
        • Infinite Scroll
        • Pull to Refresh
        • List Re-ordering
        • Date Time Pickers
        • Settings
      • Login & Signups
      • Sidemenu Layouts
      • Wordpress
        • How to integrate
      • Video Playlist
      • Grid and List Layouts
      • Chat Lists & Chat Pages
    • Pro Features
      • Pro Addons
        • AdMob
          • Integration
          • Setting up Google Admob
        • Music Player
        • Push Notifications
        • Local Notifications
        • Device
        • Clipboard
        • Social Login
        • In-App Browser
        • Sweet Alerts
        • Social Sharing
        • Google Places
        • Google Autocomplete
        • Image Cropper
      • Phaser Game Framework
      • WooCommerce
      • Payment Gateways
    • Others
      • Adding Icon and Splash
Powered by GitBook
On this page
  • Steps to remove undesired page from the App
  • Steps to remove undesired component from the Ap‌p

Was this helpful?

Removing a Page / Component

PreviousTwo way to use this TemplateNextRemoving a plugin

Last updated 5 years ago

Was this helpful?

Steps to remove undesired page from the App

Removing a page from the app is pretty straight-forward. You just remove the target folder from the code, and remove the routing associated with it. Also, if this folder or any of its child pages are imported in some other page, you need to remove those as well.

In some cases, there can be nested routing. Let's see an example of removing a nested routed page - Netflix Layout

  • Go to app-routing.module.ts file.

  • Check if the page you want to remove is a direct child of main routing, or is a nested routing child. In our case, Netflix page is directly routed

  • Select and delete the route

  • Also, check if Netflix page was imported in some other page, and remove that import and its usage as well

  • You should remove the Netflix code folder from the project as well, but you can choose to keep it if you think you'll need it in future

Steps to remove undesired component from the Ap‌p

Components do not have direct routes in routing files, but they are often imported in many different pages and/or components.

  • Locate the component folder in the project. Note the export variable name as this will be used for importing the component in other pages / components

In this case, we can see GoogleLoginComponent as the export variable.

  • Do a global search of this variable name, and remove the imports from all the files

  • Components are generally shared via sharable.module.ts . In that case, you'll have to remove the variable from declarations and exports array of the sharable.module.ts file

  • Along with the imports, you will have to remove all the features using these variables as well

  • You are free to delete the component folder or keep it in the project. Once the imports are removed, it won't affect remaining code