JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MainController.js
README.md
RepoController.js
UserController.js
app.js
github.js
index.html
main.html
repo.html
styley.css
user.html

README.md

Angular-Fundamentals

Requirements

  • Add a script tag pointing to angular.js
  • Add an ng-app attribute in your HTML
  • ng-app is an angular directive
  • The ng is short for Angular

Controller Basics

  • Controller directive in HTML (ng-controller)
  • Controller will be a function that Angular invokes
  • Controller takes a $scope parameter
  • attach model to $scope