We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81b624 commit 7c5e03cCopy full SHA for 7c5e03c
readme.md
@@ -47,6 +47,23 @@ yo angular
47
### Route
48
Generates a controller and view, and configures a route in `app/scripts/app.js` connecting them.
49
50
+Example:
51
+```bash
52
+yo angular:route myroute
53
+```
54
+
55
+Produces `app/scripts/controllers/myroute.js`:
56
+```javascript
57
+angular.module('myMod').controller('MyrouteCtrl', function ($scope) {
58
+ // ...
59
+});
60
61
62
+Produces `app/views/myroute.html`:
63
+```html
64
+<p>This is the myroute view</p>
65
66
67
### Controller
68
Generates a controller in `app/scripts/controllers`.
69
0 commit comments