Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/guide/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ And in our controller code:
```javascript
angular.module('todo', ['ionic'])

.controller('TodoCtrl', function($scope, Modal) {
.controller('TodoCtrl', function($scope, $ionicModal) {
// No need for testing data anymore
$scope.tasks = [];

// Create and load the Modal
Modal.fromTemplateUrl('new-task.html', function(modal) {
$ionicModal.fromTemplateUrl('new-task.html', function(modal) {
$scope.taskModal = modal;
}, {
scope: $scope,
Expand Down Expand Up @@ -281,7 +281,7 @@ angular.module('todo', ['ionic'])
}
})

.controller('TodoCtrl', function($scope, $timeout, Modal, Projects) {
.controller('TodoCtrl', function($scope, $timeout, $ionicModal, Projects) {

// A utility function for creating a new project
// with the given projectTitle
Expand Down Expand Up @@ -315,7 +315,7 @@ angular.module('todo', ['ionic'])
};

// Create our modal
Modal.fromTemplateUrl('new-task.html', function(modal) {
$ionicModal.fromTemplateUrl('new-task.html', function(modal) {
$scope.taskModal = modal;
}, {
scope: $scope
Expand Down