Skip to content

Instantly share code, notes, and snippets.

@tshm
Created April 23, 2014 04:44
Show Gist options
  • Save tshm/11202971 to your computer and use it in GitHub Desktop.
Save tshm/11202971 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment