Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(dev guide): attribute-directives - move html excerpt to .html file #1313

Merged
merged 1 commit into from
May 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- #docregion -->
<h1>My First Attribute Directive</h1>
<p myHighlight>Highlight me!</p>
<!-- #enddocregion -->
<!-- #docregion p-style-background -->
<p [style.background]="'lime'">I am green with envy!</p>
<!-- #enddocregion p-style-background -->
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
<h1>My First Attribute Directive</h1>
<p myHighlight>Highlight me!</p>
<!-- #enddocregion -->
<!-- #docregion p-style-background -->
<p [style.background]="'lime'">I am green with envy!</p>
<!-- #enddocregion p-style-background -->
4 changes: 2 additions & 2 deletions public/docs/ts/latest/guide/attribute-directives.jade
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ p.
:marked
We don't need *any* directive to simply set the background color.
We can set it with the special [Style Binding](template-syntax.html#style-binding) like this:
code-example(language="html" escapse="html").
<p [style.background]="'lime'">I am green with envy!</p>

+makeExample('attribute-directives/ts/app/app.component.1.html','p-style-background')

:marked
That wouldn't be nearly as much fun as creating our own directive.
Expand Down