From 4460328bc1173f5d97fb4ff54edc041968486fce Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 23 Jan 2010 15:54:58 -0800 Subject: lots of cleanup to get it ready for OS --- example/tweeter/tweeterclient.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'example/tweeter/tweeterclient.js') diff --git a/example/tweeter/tweeterclient.js b/example/tweeter/tweeterclient.js index 2fb60b0a..8c68fac0 100644 --- a/example/tweeter/tweeterclient.js +++ b/example/tweeter/tweeterclient.js @@ -1,6 +1,8 @@ function noop(){} $(document).ready(function(){ - var scope = window.scope = angular.compile(document); + var scope = window.scope = angular.compile(document, { + location:angular.startUrlWatcher() + }); scope.getJSON = function(url, callback) { var list = []; var self = this; @@ -32,6 +34,5 @@ $(document).ready(function(){ notes:'Author of & Ruby guru see: http://www.angularjs.org.', profile_image_url:'http://media.linkedin.com/mpr/mpr/shrink_80_80/p/2/000/005/0a8/044278d.jpg'} ]); - scope.watchUrl(); scope.init(); }); -- cgit v1.2.3