daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 69 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public products: Array<Object> = [
  2.   {prodName: 'product 1', prodElement: 'element 1', prodAttribute: 'Attribute 1', attrValue: 'value 1'},
  3. ];
  4.    
  5. products.splice(indexOf, 'itens a serem retirados a partir do index')
  6. products.push({Objeto da forma como vc quiser inserir})
  7.    
  8. var products = [];
  9.    
  10. products.push[{'nome':'Sérgio', 'idade':23, 'profissao':'programador angularjs}']
  11.    
  12. this.products.push({prodName: 'product 1'});
  13.    
  14. public products: any = [{prodName: 'product 1'}];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top