Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 JSON 数据传递给 Angular 模块。这是我的代码
<div ng-init="init({{post.name}})">
<div ng-init="init({name: post.name})">
或者如果你想传递所有数据
<div ng-init="init(post)">
JSFiddle