Home  >  Article  >  Web Front-end  >  Kitten Cup AngularJS video data sharing

Kitten Cup AngularJS video data sharing

巴扎黑
巴扎黑Original
2017-08-30 14:42:571077browse

AngularJS was born in 2009, created by Misko Hevery and others, and later acquired by Google. It is an excellent front-end JS framework that has been used in many Google products. AngularJS has many features, the most core of which are: MVC, modularization, automated two-way data binding, semantic tags, dependency injection, etc.

AngularJS is a JavaScript framework. It is a library written in JavaScript. It can be added to HTML pages via the <script> tag. </script>

AngularJS extends HTML through directives and binds data to HTML through expressions.

AngularJS is published as a JavaScript file and can be added to web pages through the script tag.

"Kitty Cup AngularJS Video Tutorial" will introduce AngularJS to you in detail. The thinking of AngularJS is very avant-garde. It is different from the usage and thinking of the traditional JavaScript framework. AngularJS can make us simpler and more direct. Methods to build web applications.

Kitten Cup AngularJS video data sharing

Video playback address: http://www.php.cn/course/571.html

1. $eval The method directly parses the bound attribute value

< ;/span>$scope.expr2 = '20 + 1 | number:0';

2. ng-repeat

directive copies elements - elements can be added during the copying process Corresponding property - private variable

$first

$last

$middle

$index

{ {$first?'yes':'no"}}

3. Add element style

$scope.red = "red";



String Add styles in array form

$scope.blnfocus = false;


Add multiple css styles by defining key/value objects

$scope.a = false;
$scope.b = true;


The above is the detailed content of Kitten Cup AngularJS video data sharing. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn