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

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.

主站蜘蛛池模板: 金塔县| 裕民县| 兰坪| 新竹市| 桂东县| 高安市| 吐鲁番市| 宜兴市| 荣昌县| 满洲里市| 手机| 郑州市| 库尔勒市| 抚远县| 嘉禾县| 电白县| 朝阳区| 安义县| 龙里县| 葵青区| 澳门| 滁州市| 宝应县| 米易县| 克东县| 泌阳县| 惠安县| 崇州市| 蓬安县| 阿坝县| 金堂县| 民县| 施秉县| 冕宁县| 上蔡县| 湖北省| 岱山县| 宁国市| 灯塔市| 根河市| 苏尼特右旗|