AngularJS

Search for '{{search_term}}'

AngularJS Skeleton

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

A simple AngularJS skeleton.

examples/html/angular-skeleton.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport"
     content="width=device-width, initial-scale=1, user-scalable=yes">
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>

  <script>
   angular.module('DemoApp', [])
   .controller('DemoController', ['$scope', function($scope) {
       $scope.message = "Hello World";
   }]);
  
  </script>

</head>
<body ng-app="DemoApp" ng-controller="DemoController">

<h1>Main Title</h1>
{{message}}

</body>
</html>


Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus