anchor.diff:    ## 指令概览
     
     There are three kinds of directives in Angular:
  +
     在Angular中有三种类型的指令：
     
     1. Components&mdash;directives with a template.
  
positive.code:   ## 总结
    
    This page covered how to:
    本章介绍了如何：
    - [Build a simple **attribute directive** to attach behavior to an HTML element](#write-directive).
    - [构建一个简单的**属性型指令**来为一个HTML元素添加行为](#write-directive)，
    - [Use that directive in a template](#apply-directive).
    - [在模板中使用那个指令](#apply-directive)，
  
negative.code: +makeExample('attribute-directives/ts/app/app.component.1.html',null,'app/app.component.html')(format=".")
  :marked
    Now reference this template in the `AppComponent`:
  
    现在，引用`AppComponent`的模板：
  +makeExample('attribute-directives/ts/app/app.component.ts',null,'app/app.component.ts')
  :marked
  