Skip to content

Instantly share code, notes, and snippets.

@gffcoutinho
Last active September 29, 2022 14:37
Show Gist options
  • Save gffcoutinho/b1742c6923713affc1f8 to your computer and use it in GitHub Desktop.
Save gffcoutinho/b1742c6923713affc1f8 to your computer and use it in GitHub Desktop.
Angular.js
<!DOCTYPE html>
<html lang="en" ng-app="application">
<head>
<title>Application Title</title>
<hta:application
ID="application"
APPLICATIONNAME="application"
SYSMENU="yes"
SCROLL="yes"
CAPTION="yes"
border="normal"
borderStyle="normal"
contextMenu="yes"
maximizeButton="yes"
minimizeButton="yes"
navigable="true"
showInTaskbar="yes"
singleInstance="no" />
<meta http-equiv="x-ua-compatible" content="ie=9">
<meta charset="utf-8">
<link rel="stylesheet" href="./app/lib/css/bootstrap.css" media="screen" />
<link rel="stylesheet" href="./app/lib/css/bootswatch.min.css" />
<link rel="stylesheet" href="./app/lib/css/font-awesome.css" />
<link rel="stylesheet" href="./app/lib/css/application.css" />
</head>
<body>
<!--Main Angular Application Controller-->
<div class="application-App hide" ng-controller="applicationCtrl">
</div>
<!--/application-App-->
<script src="./app/lib/js/jquery-1.10.2.min.js"></script>
<script src="./app/lib/js/angular.js"></script>
<script src="./app/lib/js/bootstrap.min.js"></script>
<script src="./app/lib/js/jquery.jsconsole.js"></script>
<script type="text/javascript">
jsConsole.init();
jsConsole.toggle();
</script>
<!--application-->
<script src="./app/lib/js/applicationApp.js"></script>
<script src="./app/lib/js/applicationControllers.js"></script>
<script src="./app/lib/js/applicationServices.js"></script>
<script src="./app/lib/js/applicationDirectives.js"></script>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" content="IE=EDGE"/>
</head>
<body ng-app="App">
<div ng-controller="Ctrl">
{{ v }}
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.js"></script>
<script>
angular.module('App', [])
.controller('Ctrl', function($scope) {
$scope.v = 'test';
});
</script>
</body>
</html>
<!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 src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.js"></script>
<script type="text/javascript">
var module = angular.module('app', []);
module.controller('ctrl', function($scope) {
$scope.name = 'gffcoutinho';
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment