nodal-angular
v0.0.4
Published
Angular SPA tools for Nodal
Downloads
13
Readme
nodal-angular
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
Installation is simple.
- Begin a new Nodal project with
nodal new
- In your new project directory, type
npm install nodal-angular --save
- Now type
nodal-angular init
- Next, go to
app/app.js
and find the following line:
/* Import Initializers */
const StaticAssetInitializer = Nodal.require('initializers/static_asset_initializer.js');
Add the following line:
const AngularInitializer = require('nodal-angular').Initializer;
- In the same file, find:
/* Initializers */
this.initializers.use(StaticAssetInitializer);
And change it to:
/* Initializers */
this.initializers.use(AngularInitializer);
this.initializers.use(StaticAssetInitializer);
Make sure you assign your AngularInitializer first! It copies files to be served by your StaticAssetInitializer.
All Done!