Created
March 31, 2016 10:52
-
-
Save JuanjoSalvador/712dd7d234c05a380b71a4a226817b62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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