Angular Documentation css property "backgroundColor" is wrong
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
In Angular Doc https://angular.io/docs/ts/latest/guide/ngmodule.html
Under heading “Declare directives and components”. There is an example of file app/highlight.directive.ts that sets the background color of element by using
renderer.setElementStyle(el.nativeElement, ‘backgroundColor’, ‘gold’);
Problem is there isn’t any such property known as “backgroundColor”. Its actually “background-color”.
Please correct your documentation.
Please tell us about your environment:
- Angular version: 2.0.X
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
unable to change the background color in Angular using style ...
Angular property binding expects an expression instead of a value which you are trying to assign. Instead of [style.backgroundColor]='red' ...
Read more >background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element.
Read more >Component styles - Angular
One way to do this is to set the styles property in the component metadata. The styles property takes an array of strings...
Read more >UI & Styling - NativeScript Docs
Additionally, NativeScript 5.0 exposes a property iosOverflowSafeArea that can ... Using backgroundColor (CSS: background-color ) & color to change the ...
Read more >CSS background-color Property - W3docs
CSS background-color property sets an element background color. The background of an element is the total size of it which includes padding and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
http://www.w3schools.com/jsref/prop_style_backgroundcolor.asp
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.