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

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.

主站蜘蛛池模板: 板桥市| 长宁区| 萨嘎县| 临高县| 成武县| 巴彦县| 兴安盟| 贡觉县| 呼玛县| 汉源县| 固阳县| 来凤县| 榆中县| 沁源县| 台安县| 成都市| 抚顺市| 梁山县| 龙门县| 东辽县| 齐齐哈尔市| 云浮市| 揭阳市| 岳普湖县| 五寨县| 宁武县| 灵台县| 凤冈县| 中西区| 呼伦贝尔市| 隆回县| 泸溪县| 山东省| 龙岩市| 象山县| 中江县| 宁津县| 新乐市| 通化县| 乐昌市| 平定县|