aboutsummaryrefslogtreecommitdiffstats
path: root/app
AgeCommit message (Collapse)Author
2017-02-03hello.component.js: Add a button that prints the name to the consoleTeddy Wing
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.
2017-02-03hello.component.js: Add <input/> to edit nameTeddy Wing
Add an input to the component and use an `ng-model` to allow users to change the name in the "Hello ____" output.
2017-02-03index.html.erb: Delete the contents of this fileTeddy Wing
Now that we have information being displayed from Angular, we can get rid of this extra text.
2017-02-03Add hello.component.jsTeddy Wing
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.
2017-02-03Create `n.Notes` app moduleTeddy Wing
This will be the base module for our app.
2017-02-03application.html.erb: Add `hello` componentTeddy Wing
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.
2017-02-03application.html.erb: Declare ngAppTeddy Wing
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.
2017-02-03application.js: Include AngularTeddy Wing
Remove unneeded libraries, include Angular and Angular's router on the page.
2017-02-03Create HomeControllerTeddy Wing
2017-02-03Initial commit. Base Rails 5.0.1 project.Teddy Wing