X Tutup
Skip to content

Add support for stateless pipes#3966

Closed
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:pipes_pure_by_default
Closed

Add support for stateless pipes#3966
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:pipes_pure_by_default

Conversation

@vsavkin
Copy link
Copy Markdown
Contributor

@vsavkin vsavkin commented Sep 2, 2015

Closes #3915

@vsavkin vsavkin added action: review The PR is still awaiting reviews from at least one requested reviewer comp: core/pipes effort1: hours labels Sep 2, 2015
@vsavkin vsavkin added this to the alpha-37 milestone Sep 2, 2015
@jeffbcross jeffbcross self-assigned this Sep 3, 2015
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cached

@jeffbcross
Copy link
Copy Markdown
Contributor

LGTM with rename to "pure" instead of "stateless".

@0x-r4bbit
Copy link
Copy Markdown
Contributor

Yes "pure" sounds more accurate.

By default, pipes are pure. This means that an instance of a pipe will be reused and the pipe will be called only when its arguments change.

BREAKING CHANGE

Before:

@pipe({name: 'date'}) class DatePipe {} defines an impure pipe.

After:

@pipe({name: 'date'}) class DatePipe {} defines a pure pipe.
@pipe({name: 'date', pure: false}) class DatePipe {} defines an impure pipe.
@vsavkin vsavkin force-pushed the pipes_pure_by_default branch from 08fff6f to 08c628d Compare September 8, 2015 16:22
@vsavkin vsavkin added the action: merge The PR is ready for merge by the caretaker label Sep 8, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #3966 on behalf of @vsavkin to branch presubmit-vsavkin-pr-3966.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 8, 2015
@vsavkin vsavkin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 8, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #3966 on behalf of @vsavkin to branch presubmit-vsavkin-pr-3966.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 8, 2015
@vsavkin vsavkin closed this in a8bdb69 Sep 8, 2015
@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Built in pipes are not being exported via angular2/angular2

5 participants

X Tutup