Sha256: 5329cd32d1231986b9fd81768f1252c3a195c0ee0df4f09a41c542874c77e6d2
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
'use strict' Sprangular.directive 'cartPopover', ($timeout, $rootScope, $popover) -> restrict: 'E' template: '<span/>' link: (scope, element, attrs) -> content = {} attrs.autoClose = true attrs.trigger = "manual" attrs.template = "cart/popover.html" attrs.content = content popover = $popover(element, attrs) $rootScope.$on 'cart.add', (event, args) -> content.variant = args.variant content.qty = args.qty popover.show() $timeout(popover.hide, 3000)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/assets/javascripts/sprangular/directives/cartPopover.coffee |