Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class StarterorderPage implements OnInit {
- $orders: [
- { id: number, description: string }
- ];
- constructor( public http: HttpClient, private route: ActivatedRoute) { }
- ngOnInit() {
- }
- MyFunction() {
- this.$orders[0].id = 230;
- this.$orders[0].description = 'descricao numero duzentos e trinta ';
- console.log('->', this.$orders[0].id, this.$orders[0].description);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement