tshm
4/23/2014 - 4:44 AM

angular integration in hta

angular integration in hta

<!DOCTYPE html>
<html ng-app="app" id="ng-app">
<head>
  <meta charset="utf-8" />
  <meta http-equiv="x-ua-compatible" content="ie=edge" />
  <title>my app</title>
  <HTA:APPLICATION 
    APPLICATIONNAME="my app"
    SCROLL="yes"
    SINGLEINSTANCE="yes" />
  <style>
    table, td, th { border: 1px solid black; }
  </style>
</head>
<body ng-controller="ctrl">

  name: {{ name }}

<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript">
  var module = angular.module('app', []);
  module.controller('ctrl', function($scope) {
    $scope.name = 'my name';
  });
</script>
</body>
</html>