Skip to content

Instantly share code, notes, and snippets.

@jchannon
Forked from philjones88/gist:7b6d917e159a9fa75609
Last active August 29, 2015 14:08
Show Gist options
  • Save jchannon/5df9a7e8748282d82ae9 to your computer and use it in GitHub Desktop.
Save jchannon/5df9a7e8748282d82ae9 to your computer and use it in GitHub Desktop.
Assuming your web app supports deep linking, like an AngularJS one would.
Assume basic crud of Foo. So list, create, edit and delete.
If a user bookmarks in your app an edit page eg/http://mydomain.com/foo/123, thanks to deep linking you now skip over the list part of navigation.
So the user's browser hits:
http://example.org/#/foos/1
This then tells AngularJS I want Foo 1.
In the Angular code it has '/Foo' + route.id
From a hypermedia perspective how does the app know to get foo 1 from the REST API?
How does the application do this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment