Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feature(style): expressions in style tags #6492

Closed
wants to merge 5 commits into from

Conversation

SekibOmazic
Copy link
Contributor

Request Type: feature

How to reproduce:

Component(s): $compile

Impact: small

Complexity: small

This issue is related to:

Detailed Description:

Data-binding for style tag doesn't work (see style.js, terminal:true). Setting terminal to false in the directive will enable data-binding. Test provided.

Other Comments:

Enable data-binding for style tags

closes #2387

Enable data-binding for style tags

closes angular#2387
@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#6492)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@doodeec
Copy link
Contributor

doodeec commented Feb 28, 2014

I don't think you can do this so easily.
What will the result be when you use <style>.header{font-size:1.5em; h3{font-size:1.5em}}</style>? I think it will remove those end brackets since angular will expect them to be an expression ending sign

@SekibOmazic
Copy link
Contributor Author

I've updated the tests to show it works even with complex css expressions.

@IgorMinar IgorMinar self-assigned this Mar 6, 2014
// read innerHTML and trim to pass on IE8
expect(trim(element[0].innerHTML)).toBe('.some-container{ width: 200px; }');
}));

Copy link
Contributor

Choose a reason for hiding this comment

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

in the future please use two blanks spaces between its. I'll fix this PR before merging.

@IgorMinar
Copy link
Contributor

also please in the future squash all change as instructed by @mary-poppins

otherwise this looks great!

I'll merge it once #6560 lands.

@IgorMinar IgorMinar added this to the 1.3.0-beta.1 milestone Mar 6, 2014
@SekibOmazic
Copy link
Contributor Author

OK. Thanks.

@IgorMinar IgorMinar closed this in 0609453 Mar 6, 2014
@IgorMinar
Copy link
Contributor

landed. thanks!

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.

expressions in style tags
4 participants