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

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.

主站蜘蛛池模板: 武威市| 淮南市| 浙江省| 荣成市| 宜君县| 武汉市| 大理市| 琼结县| 灵台县| 台南县| 阜新市| 瑞金市| 平南县| 茌平县| 新邵县| 石棉县| 施秉县| 通江县| 米易县| 来宾市| 新丰县| 颍上县| 新丰县| 泗洪县| 涿州市| 大荔县| 永城市| 密山市| 观塘区| 项城市| 台湾省| 星子县| 兴义市| 金湖县| 八宿县| 张家口市| 永川市| 通山县| 尉犁县| 抚松县| 东乡县|