Skip to content

Instantly share code, notes, and snippets.

@JuanjoSalvador
Created March 31, 2016 10:52
Show Gist options
  • Select an option

  • Save JuanjoSalvador/712dd7d234c05a380b71a4a226817b62 to your computer and use it in GitHub Desktop.

Select an option

Save JuanjoSalvador/712dd7d234c05a380b71a4a226817b62 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>AngularJS Hello World!</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<!-- Controlador -->
<script>
var app = angular.module('helloWorld', []);
app.controller('controller', function($scope) {
$scope.name = "Hello World!";
});
</script>
<!-- Vista -->
<div ng-app="helloWorld" ng-controller="controller">
<h1><em>{{ name }}</em> from AngularJS</h1>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment