AngularJS parse key-value json to CRUD form
Demo: https://soiqualang.github.io/AngularJS_parse_Json2Form/t4.html
Data mẫu
{
"Bắp": 5.0,
"Dưa leo": 10.0,
"Khổ qua": 8.0,
"Cà phổi": 2.0,
"Dưa hấu": 6.0,
"Đậu các loại": 5.5,
"Bí đao,bầu, mướp": 9.5,
"Rau ăn lá các loại": 15.5
}
t1={
"Bắp": 5.0,
"Dưa leo": 10.0,
"Khổ qua": 8.0,
"Cà phổi": 2.0,
"Dưa hấu": 6.0,
"Đậu các loại": 5.5,
"Bí đao,bầu, mướp": 9.5,
"Rau ăn lá các loại": 15.5
}
t1['haha']=1212
//t1.haha=1212
t1.haha
delete t1.hohoho
delete t1["Bí đao,bầu, mướp"]
https://stackoverflow.com/questions/27996672/autocomplete-textbox-and-angularjs
http://plnkr.co/edit/5XmPfQ78vRjSrxE0Tt3B?p=preview&preview
Dùng Jquery UI
https://soiqualang.github.io/Learn_AngularJS/t20_Make_a_Shopping_List/t1.html
https://github.com/soiqualang/Learn_AngularJS/blob/master/t20_Make_a_Shopping_List/t1.html
https://stackoverflow.com/questions/14234646/adding-elements-to-object/14234701
https://www.w3schools.com/js/js_object_properties.asp
https://www.w3schools.com/angular/ng_ng-repeat.asp
https://www.w3schools.com/howto/howto_css_browser_window.asp
https://www.w3schools.com/w3css/w3css_input.asp
https://www.w3schools.com/howto/howto_js_autocomplete.asp
https://stackoverflow.com/questions/41567495/angularjs-getting-all-keys-from-an-object