Welcome to the Angular SPA plugin for Nodal!
This module contains some simple CLI tools for working with a new Angular project, as well as an initializer that compiles your Angular SPA for you.
Installation is simple.
- Begin a new Nodal project with
- In your new project directory, type
npm install nodal-angular --save
- Now type
- Next, go to
app/app.jsand find the following line:
/* Import Initializers */const StaticAssetInitializer = Nodal;
Add the following line:
const AngularInitializer = Initializer;
- In the same file, find:
/* Initializers */thisinitializers;
And change it to:
/* Initializers */thisinitializers;thisinitializers;
Make sure you assign your AngularInitializer first! It copies files to be served by your StaticAssetInitializer.