Skip to content

Instantly share code, notes, and snippets.


Valeriy Donika Valonix

View GitHub Profile
Valonix / cart.directive.js
Created Jan 10, 2017
Cart directives for e-commerce
View cart.directive.js
'use strict';
directive('addtoCart', ['Cart','$timeout', function(Cart, $timeout){
return {
restrict: 'E',
transclude: true,
scope: {
Valonix / product-detail.component.js
Created Jan 10, 2017
Angular 1.5x Product Detail Page
View product-detail.component.js
'use strict';
(function () {
'use strict';
angular.module('productDetail').component('productDetail', {
templateUrl: 'views/app/product-detail/product-detail.template.html',
bindings: {
item: '='
View SitemapController.php
namespace App\Http\Controllers;
use App\Category;
use Sitemap;
use App\Product;
class SitemapController extends Controller
Valonix / ProductController.php
Created Jan 10, 2017
Laravel 5.2 Admin Controller
View ProductController.php
namespace App\Http\Controllers\Admin;
use App\Manufacturer;
use App\Category;
use App\Product;
use App\ProductImage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\File;
You can’t perform that action at this time.