diff --git a/modules/angular2/docs/core/01_templates.md b/modules/angular2/docs/core/01_templates.md index 8e6da56829..478185ba05 100644 --- a/modules/angular2/docs/core/01_templates.md +++ b/modules/angular2/docs/core/01_templates.md @@ -5,7 +5,7 @@ projected to DOM as well as which DOM events should invoke which methods on the syntax which is core to Angular and allows for data-binding, event-binding, template-instantiation. The design of the template syntax has these properties: - + * All data-binding expressions are easily identifiable. (i.e. there is never an ambiguity whether the value should be interpreted as string literal or as an expression.) @@ -372,8 +372,8 @@ Where: inserted. The template can be defined implicitly with `template` attribute, which turns the current element into a template, or explicitly with ` ``` -NOTE: Only Viewport directives can be placed on the template element. (Decorators and Components are not allowed.) - ### Template Microsyntax @@ -514,7 +512,7 @@ Where: * `some-element` Any element which can generate DOM events (or has an angular directive which generates the event). * `some-event` (escaped with `()` or `on-`) is the name of the event `some-event`. In this case the dash-case is converted into camel-case `someEvent`. -* `statement` is a valid statement (as defined in section below). +* `statement` is a valid statement (as defined in section below). If the execution of the statement returns `false`, then `preventDefault`is applied on the DOM event. By default, angular only listens to the element on the event, and ignores events which bubble. To listen to bubbled diff --git a/modules/angular2/docs/core/02_directives.md b/modules/angular2/docs/core/02_directives.md index 4c6504780a..6a5da8afe3 100644 --- a/modules/angular2/docs/core/02_directives.md +++ b/modules/angular2/docs/core/02_directives.md @@ -10,7 +10,6 @@ There are three different kinds of directives (described in more detail in later 1. *Decorators*: can be placed on any DOM element and can be combined with other directives. 2. *Components*: Components have an encapsulated view and can configure injectors. -3. *Viewport*: is responsible for adding or removing child views in a parent view. (i.e. for, if) @@ -163,21 +162,19 @@ Example of usage: -## Viewport +## Directives that use a ViewContainer -Viewport is a directive which can control instantiation of child views which are then inserted into the DOM. (Examples are `if` and `for`.) +Directives that use a ViewContainer can control instantiation of child views which are then inserted into the DOM. (Examples are `if` and `for`.) -* Viewports can only be placed on `