'use strict';

/**
 * @ngdoc directive
 * @name fiAngulartjeApp.directive:FiProduct
 * @description
 * # FiProduct
 */
angular.module('fiAngulartjeApp')
  .directive('fiproduct', function () {
    return {
      templateUrl: 'views/directives/fiproduct.html',
      restrict: 'E',
      scope: {
      	product: '@product'
      },
      controller: function($scope) {
      	var ingredientsarray = $scope.product.composition.concat($scope.product.sauces);
      	$scope.ingredients = ingredientsarray.join(', ');
      	$scope.price = '€ ' + $scope.product.price;
      }
    };
  });

'use strict';

/**
 * @ngdoc directive
 * @name fiAngulartjeApp.directive:FiProduct
 * @description
 * # FiProduct
 */
angular.module('fiAngulartjeApp')
  .directive('fiproduct', function () {
    return {
      templateUrl: 'views/directives/fiproduct.html',
      restrict: 'E',
      scope: {
      	product: '=product'
      },
      controller: function($scope) {
      	var ingredientsarray = $scope.product.composition.concat($scope.product.sauces);
      	$scope.ingredients = ingredientsarray.join(', ');
      	$scope.price = '€ ' + $scope.product.price;
      }
    };
  });

Revert "@ because of 1-way binding!"
Revert "@ because of 1-way binding!"

This reverts commit 65c86ab2e6d5d3912155bc3b3262265c9ce1d456.
