how to remove text style on td in angularjs

Solutions on MaxInterview for how to remove text style on td in angularjs by the best coders in the world

showing results for - "how to remove text style on td in angularjs"
Isabel
31 Feb 2017
1<input type="button" value="set color" ng-click="myStyle={color:'red'}">
2<input type="button" value="set background" ng-click="myStyle={'background-color':'blue'}">
3<input type="button" value="clear" ng-click="myStyle={}">
4<br/>
5<span ng-style="myStyle">Sample Text</span>
6<pre>myStyle={{myStyle}}</pre>
Monique
12 Oct 2018
1var colorSpan = element(by.css('span'));
2
3it('should check ng-style', function() {
4  expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
5  element(by.css('input[value=\'set color\']')).click();
6  expect(colorSpan.getCssValue('color')).toMatch(/rgba\(255, 0, 0, 1\)|rgb\(255, 0, 0\)/);
7  element(by.css('input[value=clear]')).click();
8  expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
9});
Lucinda
04 Jan 2018
1span {
2  color: black;
3}