paolazaratem / WorkshopAngularJs

WorkshopAngularJs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WorkshopAngularJs

WorkshopAngularJs

AngularJS extends HTML with ng-directives.

The ng-app directive defines an AngularJS application.

The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.

The ng-bind directive binds application data to the HTML view.

AngularJS expressions are written inside double braces: {{ expression }} or is the same way as the ng-bind directive

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

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

AngularJS Controller app.controller('myCtrl', function($scope) { $scope.firstName= "John"; $scope.lastName= "Doe"; });

Expressions: {{ expression }} ng-bind="expression" If you remove the ng-app directive, HTML will display the expression as it is

About

WorkshopAngularJs


Languages

Language:JavaScript 61.7%Language:HTML 38.3%