X Tutup
Skip to content

feat: change template micro-syntax to new syntax#482

Closed
mhevery wants to merge 1 commit intoangular:masterfrom
mhevery:var-syntax
Closed

feat: change template micro-syntax to new syntax#482
mhevery wants to merge 1 commit intoangular:masterfrom
mhevery:var-syntax

Conversation

@mhevery
Copy link
Copy Markdown
Contributor

@mhevery mhevery commented Jan 28, 2015

Old syntax:

  • ng-repeat: #item in items;
  • ng-repeat: #item; in: items;
  • <template let-ng-repeat=“item” [in]=items>

New syntax:

  • ng-repeat: var item in items;
  • ng-repeat: var item; in items
  • <template ng-repeat var-item [in]=items>

Notice that the var is now a standalone binding
rather then an argument to ng-repeat. This will
make the var bindings consistent with the rest of
the system.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

debug

@mhevery mhevery force-pushed the var-syntax branch 4 times, most recently from 47bec6f to 994954f Compare January 30, 2015 19:42
Old syntax:
- ng-repeat: #item in items;
- ng-repeat: #item; in: items;
- <template let-ng-repeat=“item” [in]=items>

New syntax:
- ng-repeat: var item in items;
- ng-repeat: var item; in items
- <template ng-repeat var-item [in]=items>


Notice that the var is now a standalone binding 
rather then an argument to ng-repeat. This will 
make the var bindings consistent with the rest of 
the system.
@mhevery mhevery closed this in 9db13be Jan 30, 2015
@mhevery mhevery deleted the var-syntax branch June 16, 2015 23:47
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup