Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbraus committed May 20, 2015
1 parent 5caac94 commit a474f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 1 addition & 3 deletions app.js
Expand Up @@ -9,9 +9,7 @@ angular.module('starter', [])
})
}])

.controller("MyFirstCtrl", ['$scope', '$rootScope', function ($scope, $rootScope) {

$scope.foo = { bar: 'My First Angular App' }
.controller("MovieCtrl", ['$scope', '$rootScope', function ($scope, $rootScope) {

$scope.addPoint = function() {
$rootScope.$broadcast('addPoint')
Expand Down
11 changes: 1 addition & 10 deletions index.html
Expand Up @@ -18,16 +18,7 @@
<body ng-app="starter">
<ng-include src="'navbar.html'"></ng-include>

<div class="container" ng-controller="MyFirstCtrl">

<div class='form-group'>
<label>Home</label>
<input ng-model="foo.bar" class='form-control' autofocus/>
</div>
<p>
<i class="icon ion-home"></i> {{foo.bar}}
</p>

<div class="container" ng-controller="MovieCtrl">
<p class='text-right'>
<button class='btn btn-default' ng-click="addPoint()">Add Point</button>
</p>
Expand Down

0 comments on commit a474f8b

Please sign in to comment.