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

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.

主站蜘蛛池模板: 吐鲁番市| 梧州市| 顺平县| 朝阳市| 桦南县| 湖口县| 潍坊市| 芷江| 凤庆县| 加查县| 保靖县| 沿河| 沈丘县| 侯马市| 夏津县| 凤翔县| 集贤县| 新安县| 循化| 浠水县| 利辛县| 亚东县| 绥宁县| 嘉善县| 娱乐| 阿拉善左旗| 江源县| 尼勒克县| 镶黄旗| 宜宾县| 平南县| 延津县| 镇巴县| 文昌市| 昌平区| 石林| 彭州市| 本溪市| 新密市| 淮阳县| 潞西市|