Answer the question
In order to leave comments, you need to log in
How to insert javascript?
How to insert javascript inside angular.js template?
<div ng-controller="ModalDemoCtrl">
<script type="text/ng-template" id="myModalContent.html">
<div class = "modal" style="width:600px;">
<div class = "modal-body" style="max-height:480px;">
Как вот сдесь в этом месте вставить javascript?
типа так <script></script> что бы работало модальное окно
</div>
</div>
</script>
<a href="" ng-click="open()">Open Popup</a>
</div>
Answer the question
In order to leave comments, you need to log in
This is a view
this is the controller
$scope.someFunc = function(paramOne, paramTwo) {
return paramOne + paramTwo;
}
and how to insert it when the button looks like this?
<script type="text/javascript" src="https://checkout.pay.g2a.com/index/checkout"
data-id="pay-g2a-script"
data-key="000000000"
data-email="000000000"
data-amount="dish.price"
data-currency="EUR"
data-order-id="1"
description="dish.description"
data-items[0][sku]="VIRT"
data-items[0][id]="1"
data-items[0][name]="dish.name"
data-items[0][amount]="dish.price"
data-items[0][qty]="1"
data-items[0][price]="dish.price"
data-items[0][extra]="1"
data-items[0][url]="dish.url"
data-url-ok="http://test.store.org"
data-url-failure="http://test.store.org">
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question