Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div ng-if="style == 1" ng-repeat="shot in shots | limitTo:limit">
- Id: @{{ shot.id }}
- <br>
- Liked? : @{{ log.log( shot.liked ? 'TRUE' : 'FALSE') }}
- <br>
- </div>
- // Возвращает все FALSE.
- // php
- foreach($shots as $s){
- if($s->liked){
- echo 'ID:'.$s->id.'<br>';
- }else{
- echo 'not ok!<br>';
- }
- }
- // Возвращает:
- ID:1
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
- not ok!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement