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

docs: (template-syntax) Fixed typo #1048

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion public/docs/ts/latest/guide/template-syntax.jade
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ table
// #docregion property-binding-7
:marked
### Binding target
a id between enclosing square brackets identifies the target property. The target property in the following code is the image element’s `src` property.
An element property between enclosing square brackets identifies the target property. The target property in the following code is the image element’s `src` property.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this, but I would say An attribute between enclosing....

But that is my opinion. Let see what @wardbell has to say.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought to add the attribute word but then it came to my mind that Angular sets DOM properties and not attributes, thus it will be more clear to the user reading this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, is a confusing point. I still think that what you see in the HTML is an attribute and then it becomes a property when it gets processed by the browser. So it is an attribute with square brackets.

Or perhaps I am wrong. Let's get another opinion in here.


// #enddocregion property-binding-7
+makeExample('template-syntax/ts/app/app.component.html', 'property-binding-1')(format=".")
Expand Down