Debian Codegraph @

test/fixtures/click.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html ng-app="myApp">
3 <head>
4 <title>Click test</title>
5 </head>
6 <body>
7 <h1>Click test</h1>
8 <button id="test1" translate ng-click="value = 'Success'">Test 1</button>
9 <button id="test2" translate ng-click="value = 'Success'">Hello</button>
10 <span id="test3" translate>Compile <button ng-click="value = 'Success'">this</button></span>
11 <div id="field" ng-bind="value" />
12
13 <script src="/bower_components/jquery/dist/jquery.js"></script>
14 <script src="/bower_components/angular/angular.js"></script>
15 <script src="/dist/angular-gettext.js"></script>
16 <script>
17 angular.module('myApp', ['gettext']);
18
19 angular.module('myApp').run(function (gettextCatalog) {
20 gettextCatalog.currentLanguage = 'nl';
21 gettextCatalog.setStrings('nl', {
22 'Hello': 'Hallo',
23 'Compile <button ng-click="value = \'Success\'">this</button>': 'Compile <button ng-click="value = \'Success\'">dit</button>',
24 'Compile <button ng-click="value = \'Failure\'">this</button>': 'Compile <button ng-click="value = \'Failure\'">dit</button>'
25 });
26 });
27 </script>
28 </body>
29 </html>