angular-cn/modules/angular2/docs/core
Tobias Bosch d2efac18ed feat(core): separate refs from vars.
Introduces `ref-` to give a name to an element or a directive (also works for `<template>` elements), and `let-` to introduce an input variable for a `<template>` element.

BREAKING CHANGE:
- `#...` now always means `ref-`.
- `<template #abc>` now defines a reference to the TemplateRef, instead of an input variable used inside of the template.
- `#...` inside of a *ngIf, … directives is deprecated.
  Use `let …` instead.
- `var-...` is deprecated. Replace with `let-...` for `<template>` elements and `ref-` for non `<template>` elements.

Closes #7158

Closes #8264
2016-04-28 01:13:40 +00:00
..
00_index.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
01_templates.md feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
02_directives.md chore(core): remove @View annotation 2016-03-14 23:26:20 +00:00
03_pipes.md docs(core): fix Formatters -> Pipes 2015-05-08 13:45:13 -07:00
04_decorator_directive.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
05_component_directive.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
06_viewport_directive.md refactor(ViewPort): @Template -> @Viewport, ViewPort -> ViewContainer 2015-02-13 17:48:27 +01:00
07_services.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
08_lifecycle.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
09_compilation.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
10_view.md feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
11_shadow_dom.md chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00
12_zones.md doc: fix & sync with latest updates 2015-05-18 23:11:45 +02:00