Skip to content

Instantly share code, notes, and snippets.

@chrismatheson
Created October 29, 2013 12:41
Show Gist options
  • Save chrismatheson/7213935 to your computer and use it in GitHub Desktop.
Save chrismatheson/7213935 to your computer and use it in GitHub Desktop.
ivCard proposal

#ivCard componenet

has two views, front and back. The card itself adds a button to flip between these views and manages this stae internally.

###Events changes in view are emited up the scope chain and can be broadcast from the parent scopes to control the view state.

###Useage

<div iv-card>
    <div front>
        Some Text on the front of the card
    </div>
    <div back>
        Different text for the back
    </div>
</div>

responding to events

<div iv-card on-flip="doThingOnFlip" on-open="doThingOnOpen" on-close="doThingOnClose">
    <div front>
        Some Text on the front of the card
    </div>
    <div back>
        Different text for the back
    </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment