我想阻止未编译的元素在我的Angular2中显示,直到它准备好.我是用ngcloak做的,还是Angular2项目的新方法?
我有一个json文件,我想构建一个表单,该表单允许我在文件中添加/编辑元素。是否有一个jQuery函数/方法,使我能够在外部json文件中发布和追加元素?
不知道这是否有帮助,但是当前的json结构如下:
[ { "cast" : "",
"director" : "",
"genre" : "",
"id" : false,
"nrVotes" : 0,
"plot" : "",
"rating" : 0,
"runtime" : 0,
"title" : "",
"year" : false
},
{ "cast" : "Tim Robbins, Morgan Freeman, Bob Gunton, ",
"director" : "Frank Darabont",
"genre" : "Crime Drama ",
"id" : "0111161",
"nrVotes" : 968510,
"plot" : "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common …Run Code Online (Sandbox Code Playgroud)