I think I figured it out. The path method only gets/sets the path part of
the URL. The url method gets/sets the path, search and hash parts of the
URL all in one call. I'm still curious where they are implemented in the
angular.js file though. Can someone point me to a line number in the
current version, 1.2.10?

On Sun, Jan 26, 2014 at 7:19 PM, Mark Volkmann <[email protected]>wrote:

> What is the difference between these?
>
> $location.path(someUrl);
> $location.url(someUrl);
>
> I tried to find where these methods are defined in the source code, but
> failed to find them.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>



-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to