Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Adds global filters docs for #571 #573

Merged
merged 2 commits into from
Aug 4, 2014
Merged

Adds global filters docs for #571 #573

merged 2 commits into from
Aug 4, 2014

Conversation

addyosmani
Copy link
Member

reviewer: @ebidel

#### Creating global filters

Let's create a filter for transforming the letters in any templated string
to uppercase. Once registered, we will be able to use it as follows:
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove "Once registered, we will be able to use it as follows:"

@addyosmani
Copy link
Member Author

Thanks for the feedback, Eric!

Filters you wish to use across multiple elements can be defined in script and
imported in at the top of your Polymer element after Polymer has loaded. E.g:

{% raw %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need raw, just a 4 space indent for the pretty printer

@ebidel ebidel added cla: yes and removed cla: no labels Aug 2, 2014
@addyosmani
Copy link
Member Author

@ebidel think I managed to address your feedback. Did I miss anything?

@ebidel
Copy link
Contributor

ebidel commented Aug 4, 2014

LGTM. Ready to merge?

@addyosmani
Copy link
Member Author

Ready when you are!

ebidel added a commit that referenced this pull request Aug 4, 2014
@ebidel ebidel merged commit 593992a into master Aug 4, 2014
@ebidel ebidel deleted the globalfilters branch August 4, 2014 18:42
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.

3 participants