User:Johnpeter.november/sandbox

AngularJS
Before you study AngularJS, you should have a basic understanding of: AngularJS is a JavaScript framework. It is a library written in JavaScript.
 * 1) HTML
 * 2) CSS
 * 3) Javascript

AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:



The ng-app directive tells AngularJS that the element is the "owner" of an AngularJS  application.

The ng-model directive binds the value of the input field to the application variable name.

The ng-bind directive binds the innerHTML of the element to the application variable  name.

AngularJS Applications
AngularJS modules define AngularJS applications.

AngularJS controllers control AngularJS applications.

The ng-app directive defines the application, the ng-controller directive defines the controller.



First Name: 

Last Name: 

Full Name:

var app = angular.module('myApp ', []);

app.controller('myCtrl ', function($scope) {

$scope.firstName= "John";

$scope.lastName= "Doe";

});