Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid requests #17

Merged
merged 2 commits into from
Apr 15, 2016
Merged

Avoid requests #17

merged 2 commits into from
Apr 15, 2016

Conversation

mitogh
Copy link
Member

@mitogh mitogh commented Apr 15, 2016

With this change we add the option to avoid the native request to an endpoint where is not required such as the case of the 404 page.

Also some improvements on the code to avoid functions where was not need

@mitogh
Copy link
Member Author

mitogh commented Apr 15, 2016

Hey @andybar2 maybe you can take a look at this one.

Thank you :)

@@ -25,6 +25,7 @@ var lnCms = angular.module('lnCms', [
var state = {
name: route.state,
url: route.url,
request: 'request' in route ? route.request : true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the custom data that we attach to the states, should be inside the "data" object. That's the way ui-router recommends in order to avoid conflicts with the reserved options.

@mitogh
Copy link
Member Author

mitogh commented Apr 15, 2016

Thanks for the comments @andybar2 I just update the code based on your feedback.

@andybar2 andybar2 merged commit e06722c into master Apr 15, 2016
@andybar2 andybar2 deleted the routes-with-no-request branch April 15, 2016 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants