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

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.

主站蜘蛛池模板: 确山县| 金堂县| 白河县| 武定县| 霸州市| 莱西市| 金阳县| 波密县| 永川市| 乌兰察布市| 天津市| 离岛区| 临沧市| 潜江市| 屯留县| 巴塘县| 黎城县| 广饶县| 临湘市| 泽普县| 伊春市| 中卫市| 枣强县| 明光市| 临澧县| 犍为县| 耒阳市| 岫岩| 白山市| 上高县| 壤塘县| 边坝县| 太保市| 寿阳县| 丰县| 随州市| 东阿县| 邓州市| 阜阳市| 长春市| 双辽市|