.. _learn_plugin_development_add_admin_app: ============= Add Admin App ============= The admin app is the admin user interface. This is known as the "frontend" in web terminology. The backend for the peek admin app is the peek logic service. In this section we'll add the root admin page for the plugin. We only scratch the surface of using Angular, that`s outside the scope of this guide. See :ref:`developing_with_the_frontends` to learn more about how Peek pieces together the frontend code from the various plugins. Admin App File Structure ------------------------ Add Directory :file:`admin-app` ``````````````````````````````` The :file:`admin-app` directory will contain the plugins the Angular application. Angular "Lazy Loads" this part of the plugin, meaning it only loads it when the user navigates to the page, and unloads it when it's finished. This allows large, single page web applications to be made. Anything related to the user interface should be lazy loaded. ---- Create directory :file:`peek_plugin_tutorial/_private/admin-app` Add File :file:`tutorial.component.html` ```````````````````````````````````````` The :file:`tutorial.component.html` file is the HTML file for the Angular component (:file:`tutorial.component.ts`) we create next. ---- Create the file :file:`peek_plugin_tutorial/_private/admin-app/tutorial.component.html` and populate it with the following contents. ::
Angular2 Lazy Loaded Module
This is the root of the admin app for the Tutorial plugin