Age | Commit message (Collapse) | Author |
|
Clicking on the button prints the current name to the console. Normally
you wouldn't include the debug console in the controller scope, but this
is here as an example to illustrate the action. The window isn't
available to the controller's scope, it only includes what it defines on
its scope.
|
|
Add an input to the component and use an `ng-model` to allow users to
change the name in the "Hello ____" output.
|
|
Now that we have information being displayed from Angular, we can get
rid of this extra text.
|
|
Create a new component for a Hello World example. This is housed in a
new `n.Hello` module.
For now, just print a hard-coded name to the page.
Update the `n.Notes` module adding a dependency on `n.Hello` in order
for our new component to be displayed.
|
|
This will be the base module for our app.
|
|
Include a new `<hello/>` component on the page. We haven't written it
yet, but this will be where it gets rendered on the page.
|
|
Set ngApp on the `<html>` attribute of the layout template. Calling it
"Notes" since this is a note app. Using the `n` prefix to
separate/namespace application/project modules from other included
modules.
|
|
Remove unneeded libraries, include Angular and Angular's router on the
page.
|
|
|
|
|