Skip to content

Instantly share code, notes, and snippets.

@xpander54
Created June 9, 2014 21:17
Show Gist options
  • Save xpander54/b5742f5be678c105ed2b to your computer and use it in GitHub Desktop.
Save xpander54/b5742f5be678c105ed2b to your computer and use it in GitHub Desktop.
emps code
@emps
Copy link

emps commented Jun 9, 2014

Delete
{{picture._id}}
caption: {{arrayCaptions[event.pictures.indexOf(picture)]}}
Likes: {{arrayLikes[event.pictures.indexOf(picture)]}}
                <form data-ng-show="global.isAdmin || picture.user === global.user._id" class="col-md-6"
                      data-ng-submit="setCaption(picture._id, caption, event.pictures.indexOf(picture));">
                    <input class="form-control" type="text" data-ng-model="caption">
                    <button type="submit" class="btn">set caption</button>
                </form>
                <button class="btn" data-ng-click="likeUnlike(picture._id, event.pictures.indexOf(picture))">LIKE
                </button>
                {{picture.user}}<br> {{global.user._id}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment