Skip to content

Commit 4ed6cd2

Browse files
committed
App AngularJS
Nace una aplicación en AngularJS
1 parent 58c29f7 commit 4ed6cd2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
99
<link rel="stylesheet" href="styles/styles.css"/>
1010
</head>
11-
<body >
11+
<body ng-app="angularFromScratch" ng-controller="Principal as principal">
1212
<div class="container">
1313
<div class="row">
1414
<div class="col-xs-12">
15-
<h1>Angular From Scratch</h1>
15+
<h1>{{principal.tituloApp}}</h1>
1616
</div>
1717
</div>
1818
<div class="row">

app/scripts/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
var app = angular.module('angularFromScratch', []);
3+
4+
app.controller('Principal',['$scope',function($scope){
5+
this.tituloApp = 'Hola AngularJS';
6+
}]);

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularfromstrach",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"dependencies": {
55
"respond": "~1.4.2",
66
"es5-shim": "~4.0.5",

0 commit comments

Comments
 (0)