Sha256: fef411af6dadfe6e1d10632c811d9e3e6f8d0404616aa30e90f6477cc5bf8549

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

{:uriI"file:///home/croaton/projects/redshop/app/assets/javascripts/redshop/angular/controllers/home.js?type=application/javascript&pipeline=self&id=4710557cb2a0ab38f0a732f36372ff9bdadff7e38d9fe3980856e22ef628e967:ET:load_pathI":/home/croaton/projects/redshop/app/assets/javascripts;T:
filenameI"^/home/croaton/projects/redshop/app/assets/javascripts/redshop/angular/controllers/home.js;T:	nameI"%redshop/angular/controllers/home;T:logical_pathI"-redshop/angular/controllers/home.self.js;T:content_typeI"application/javascript;T:sourceI"xapp.controller('HomeCtrl', HomeCtrl)

function HomeCtrl(cartService) {
  var vm = this;

  vm.test = '123'

  vm.getCartCount = function() {
    cartService.getCartCount().then(function(res) {
      vm.cartCount = res;
    });
  }

  vm.getCartCount();

  vm.addToCart = function(cartId, productId) {
    cartService.addToCart(cartId, productId);
    vm.getCartCount();
  }
}
;T:
metadata{:dependencieso:Set:
@hash}	I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"lfile-digest:///home/croaton/projects/redshop/app/assets/javascripts/redshop/angular/controllers/home.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%;|rnKِ^$9O9
yGT:lengthix:dependencies_digest"%Pmx.nuU6hM5#:idI"E4710557cb2a0ab38f0a732f36372ff9bdadff7e38d9fe3980856e22ef628e967;F:
mtimel+lV

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redshop-0.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/_tU6Iu45Gmf8SSzsaECryzRWwKzt4cg-LQj3XzSBcsQ.cache