Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. <input type="text" [(ngModel)]="colorName"/>
  2. <p [ngStyle]="{background-color:'colorName'}">This is a paragraph.</p>
  3.  
  4. colorName: string = 'red';
Add Comment
Please, Sign In to add comment