From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- docs/content/cookbook/deeplinking.ngdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/content/cookbook/deeplinking.ngdoc') diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index 6747b55f..9e00f362 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -56,7 +56,7 @@ The two partials are defined in the following URLs: function WelcomeCntl($route){} WelcomeCntl.prototype = { - greet: function(){ + greet: function() { alert("Hello " + this.person.name); } }; @@ -67,11 +67,11 @@ The two partials are defined in the following URLs: this.cancel(); } SettingsCntl.prototype = { - cancel: function(){ + cancel: function() { this.form = angular.copy(this.person); }, - save: function(){ + save: function() { angular.copy(this.form, this.person); this.$location.path('/welcome'); } @@ -89,7 +89,7 @@ The two partials are defined in the following URLs: - it('should navigate to URL', function(){ + it('should navigate to URL', function() { element('a:contains(Welcome)').click(); expect(element('ng\\:view').text()).toMatch(/Hello anonymous/); element('a:contains(Settings)').click(); -- cgit v1.2.3