# Angular 内置指令

## 渲染指令

* ng-init
* ng-bind
* ng-repeat
  * $index 当前索引
  * $first 是否为头元素
  * $middle 是否为非头非尾元素
  * $last 是否为尾元素
* ng-include
* ng-bind-template

## 事件指令

* ng-change
* ng-click
* ng-dblclick
* ng-mousedown
* ng-mouseenter
* ng-mouseleave
* ng-mousemove
* ng-mouseover
* ng-mouseup
* ng-submit

## 节点指令

* ng-style
* ng-class
* ng-class-even
* ng-class-odd
* ng-show
* ng-hide
* ng-switch
* ng-src
* ng-href
* ng-if
* [ng-option](http://www.ncloud.hk/技术分享/ng-options-usage/)
* [ng-selected](http://www.cnblogs.com/yshyee/p/4273828.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xiaoxiami.gitbook.io/angularjs/zhi_ling/angular_nei_zhi_zhi_ling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
