The MEANJS top-level page is located in the server / app / views / layout.server.view.html section and where you set the header meta tags. Most of all, angular is programmatically inserted on the page, for example, links to CSS files and Javascript files.
Any of the CSS or Javascripts files under your server / public are automatically automatically added to the page. If you want to add other, third-party scripts or style sheets, do this by editing the server configuration file located in config / env / all.js.
So, for example, to add a version of the tinymce angular editor to your MEANJS site, you must edit config / env / all.js by adding CSS to module.exports.assets.lib.css and links to the tinymce editor and its angular to module shell. exports.assets.lib.js.
You will need to restart the server (using the "grunt" command) if you modify this file while the server is running.
UPDATE
Using mean-cli@0.6.1 to take up the new medium project, the default βtop levelβ page is in packages/custom/meanStarter/public/views/system , where you will find two files:
- header.html - which describes the default navigation bar layout
- index.html - which displays the default page content
Now, having noted this, it should be noted that the βrightβ way to configure the middle server to display its own top-level home page is to create a new middle package.
See the docs for more information.
source share