Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <svg id="lines" viewBox="0 0 320.6 542.59" >
- <line *ngFor="let line of lines" class="line" [attr.x1]="line.x1" [attr.y1]="line.y1" [attr.x2]="line.x2" [attr.y2]="line.y2"/>
- </svg>
- export class MyComponent{
- lines = [ // here
- { weight: 0.4, x1: 86.69, y1: 1, x2: 98.91, y2: 1 },
- { weight: 0.5, x1: 85.31, y1: 9.67, x2: 98.23, y2: 9.67 }
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement