scripts/symfony-pages/base-angular.html.twig
2023-08-29 14:13:49 +02:00

22 lines
946 B
Twig
Executable File

{% extends "::index.html.twig" %}
{% block main %}
<div class="well">
{% verbatim %}
<div ng-app='tk'>
<div ng-controller='mainCtrl'>
test: {{test}}
</div>
</div>
{% endverbatim %}
<script type="text/javascript"
src="{{ asset('bundles/tykaynportfolio/js/angular/lib/angular/angular.js') }}"></script>
<script type="text/javascript">
angular.module("tk", ['tk.controllers']);
angular.module("tk.controllers", []).controller('mainCtrl', ['$scope', function ($scope) {
$scope.test = 20;
}]);
</script>
</div>
{% endblock %}