Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created November 16, 2016 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bangpound/f16736cd6506b2a0b756e2372612be33 to your computer and use it in GitHub Desktop.
Save bangpound/f16736cd6506b2a0b756e2372612be33 to your computer and use it in GitHub Desktop.
diff --git a/src/AppBundle/Resources/public/js/Controller/ReviewController.js b/src/AppBundle/Resources/public/js/Controller/ReviewController.js
index e12890d..3292e7a 100644
--- a/src/AppBundle/Resources/public/js/Controller/ReviewController.js
+++ b/src/AppBundle/Resources/public/js/Controller/ReviewController.js
@@ -10,17 +10,7 @@
)
.directive('myPopup', ['$window', function ($window) {
return {
- restrict: 'EA',
- scope: {
- camperFormData: '=',
- parentFormData: '=',
- registration: '=',
- labelMap: '=',
- reviewLeadData: '=',
- reviewLeadDetails: '=',
- currentSeason: '=',
- productsById: '='
- },
+ restrict: 'A',
link: function (scope, elem, attrs) {
function saveDataLocally () {
diff --git a/src/AppBundle/Resources/public/views/review.html b/src/AppBundle/Resources/public/views/review.html
index 0eab281..542bdaa 100644
--- a/src/AppBundle/Resources/public/views/review.html
+++ b/src/AppBundle/Resources/public/views/review.html
@@ -5,14 +5,6 @@
<div class="col-md-5 col-md-push-7 col-sm-12">
<button
my-popup
- camper-form-data="camperFormData"
- parent-form-data="parentFormData"
- registration="registration"
- label-map="labelMap"
- review-lead-data="reviewLeadData"
- review-lead-details="reviewLeadDetails"
- current-season="currentSeason"
- products-by-id="productsById"
>
Print
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment