Created
June 1, 2017 00:29
-
-
Save byverdu/2aca8480cacc9fd21e5d1606b85138c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/client/views/item.pug | |
block content | |
.wrapper(ng-controller="ImdbController as imdb") | |
div(ng-show="!imdb.contentReady") Loading ... | |
div(ng-show="imdb.contentReady") | |
imdb-card(data="imdb.singleItem", call-action="imdb.showForm()" text-btn="Add Rating") | |
form(ng-submit="imdb.updateItem()", ng-show="imdb.revealForm") | |
h3 Add your Rating | |
input(type="text", ng-model="imdb.rating", placeholder="rating ...") | |
input(type="submit", value="submit") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment