Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. export class StarterorderPage implements OnInit {
  2. $orders: [
  3. { id: number, description: string }
  4. ];
  5. constructor( public http: HttpClient, private route: ActivatedRoute) { }
  6.  
  7. ngOnInit() {
  8. }
  9.  
  10. MyFunction() {
  11. this.$orders[0].id = 230;
  12. this.$orders[0].description = 'descricao numero duzentos e trinta ';
  13. console.log('->', this.$orders[0].id, this.$orders[0].description);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement