Commit 2dc63a31f176836ce52b3f49ca89ee868715a4af
1 parent
52b5d7fa
Exists in
master
and in
4 other branches
chamada da api
Showing
2 changed files
with
20 additions
and
2 deletions
Show diff stats
src/app/components/proposal-box/proposal-box.html
| ... | ... | @@ -141,7 +141,7 @@ |
| 141 | 141 | <div class="proposal-box--program color-theme-bg">{{vm.topic.title}}</div> |
| 142 | 142 | |
| 143 | 143 | <!-- Apagar o bloco abaixo --> |
| 144 | - <span style="background: green;">{{::vm.proposal.body}} | |
| 144 | + <span style="background: green;">{{::vm.proposal}} | |
| 145 | 145 | </div> |
| 146 | 146 | <div class="proposal-box--middle"> |
| 147 | 147 | <div class="proposal-box--content"> | ... | ... |
src/app/pages/respostas/respostas.controller.js
| ... | ... | @@ -169,7 +169,25 @@ |
| 169 | 169 | var params = { |
| 170 | 170 | page: page, |
| 171 | 171 | per_page: per_page, |
| 172 | - has_children: true | |
| 172 | + has_children: true, | |
| 173 | + 'fields[]': [ | |
| 174 | + 'id', | |
| 175 | + 'body', | |
| 176 | + 'abstract', | |
| 177 | + 'hits', | |
| 178 | + 'ranking_position', | |
| 179 | + 'votes_against', | |
| 180 | + 'votes_count', | |
| 181 | + 'votes_for', | |
| 182 | + 'parent', | |
| 183 | + 'categories', | |
| 184 | + 'slug', | |
| 185 | + 'url', // parent.image.url | |
| 186 | + 'image', | |
| 187 | + 'title', | |
| 188 | + 'archived', | |
| 189 | + 'has_children', | |
| 190 | + ] | |
| 173 | 191 | }; |
| 174 | 192 | |
| 175 | 193 | if (vm.selectedTheme) { | ... | ... |