官术网_书友最值得收藏!

Introduction

Directives make up an important part in AngularJS applications with AngularJS. They manipulate the Document Object Model (DOM), route events to event handler functions, and much more. Through the use of custom directives, we can build applications with a rich user interface.

Although the built-in directives such as ng-repeat, ng-show, and ng-hide cover many different scenarios, you will often need to create application-specific directives. This chapter will give you an overview on how to create and customize simple AngularJS directives, with the best practices in mind.

We assume that you already know what directives are, so let's check how to create and customize some simple directives to manipulate the DOM.

主站蜘蛛池模板: 汶上县| 穆棱市| 东明县| 河东区| 福贡县| 山阳县| 墨竹工卡县| 阿拉善右旗| 曲麻莱县| 江陵县| 道真| 潮安县| 凉城县| 长沙市| 张家口市| 新兴县| 香格里拉县| 阜城县| 秭归县| 河南省| 德令哈市| 鄂托克前旗| 祁连县| 寿阳县| 高安市| 吉安市| 色达县| 乐至县| 清远市| 长垣县| 高州市| 梓潼县| 黄陵县| 大荔县| 金川县| 亚东县| 边坝县| 南宁市| 阿拉善右旗| 乌拉特前旗| 西乡县|