Guest User

Untitled

a guest
Jan 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class A implements OnInit {
  2. stringArr: string[];
  3.  
  4. ngOnInit() {
  5. for(let i=0; i<4; i++) {
  6. this.stringArr.push("aaa");
  7. }
  8. }
  9. }
  10.  
  11. stringArr: string=[];
  12.  
  13. ngOnInit() {
  14. for(let i=0; i<4; i++) {
  15. this.stringArr.push("aaa");
  16. }
  17. }
Add Comment
Please, Sign In to add comment