Adding a Route
Adding a Route
$ yo angular-fullstack:route foo
? What module name would you like to use? (aftestApp.foo)
? What module name would you like to use? aftestApp.foo
? Where would you like to create this route? (client/app/)
? Where would you like to create this route? client/app/
? What will the url of your route be? (/foo)
? What will the url of your route be? /foo
create client\app\foo\foo.component.js
create client\app\foo\foo.component.spec.js
create client\app\foo\foo.html
create client\app\foo\foo.scss
In the parent of this component, you should now import this component and add it as a dependency:
import FooComponent from './foo/foo.component';
...
export angular.module('myParentModule', [FooComponent]);

Last updated