This template is an enhanced version of the Angular Universal Template. It was created to provide some additional functionality commonly need when creating websites in Angular Universal. The repository is continuously updated with feature improvements and updates as the original repository is updated.
- A Home, About, and Contact module have been created, each with their own designated routes.
- Preloading is enabled, so all routes are loaded and cached when visiting the site for the first time.
- Initial navigation is enabled to avoid page flashes when a user visits a newly updated version of the site.
angular.json
is configured so external styles and templates are used when generating a new component; Scss is also set as the default stylesheet.- The root of the e2e project in
angular.json
has been set to "e2e" to avoid cli issues. - Resources have been sharified and placed in the
src/app/shared
directory. - Bootstrap, font-awesome, and animate.css are included in the build process.
- Prettier has been included for code formatting.
- A responsive header, sidebar, and footer have been created, leveraging the ng-click-outside for mobile behavior.
- On page navigation, the user is scrolled to the top of the page.
- The outline is removed on visited li elements.
yarn
yarn start
Add all routes to static.path.ts
.
yarn build
Note*: To deploy your static site to a static hosting platform you will have to deploy the dist/browser
folder, rather than the usual dist