Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 96e056b

Browse files
gkalpakpetebacondarwin
authored andcommitted
fix(projectsApp): remove unused $timeout and corresponding tooltip
Closes #141
1 parent 4321713 commit 96e056b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ <h2>Todo</h2>
590590
$scope.projects = Projects;
591591
})
592592

593-
.controller('CreateCtrl', function($scope, $location, $timeout, Projects) {
593+
.controller('CreateCtrl', function($scope, $location, Projects) {
594594
$scope.save = function() {
595595
Projects.$add($scope.project).then(function(data) {
596596
$location.path('/');
@@ -701,7 +701,6 @@ <h2>JavaScript Projects</h2>
701701
, "otherwise": "The <code>otherwise</code> route specifies which view to display when the URL doesn’t match any of the explicit routes. It’s the default."
702702
, "Projects": "<code>Projects</code> is an instance of <code>$firebase</code>, and is defined in the <code>projects</code> module. It exposes method to add, remove and update projects in the collection. Its purpose is to abstract the server communication. This lets the controller focus on the behavior rather than the complexities of server access."
703703
, "$scope": "We can immediately assign the set of projects to our scope, and they will be displayed in the view."
704-
, "$timeout": "The callback for Projects.$add is called asynchronously, and we have to use $timeout to ensure $location has the right context when it executes."
705704
, "$location": "You use the <code>$location</code> service to access the browser's location."
706705
, "path": "Use the <code>path</code> method to change the application's 'deep-linking' location. Changing the URL will automatically activate the new route, and transition the application to display that view -- in this case, the <code>/edit/</code> view."
707706
, "$routeParams": "Here, we ask AngularJS to inject the <code>$routeParams</code> service. We use it to access the parameters extracted from the route path definitions."

0 commit comments

Comments
 (0)