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

Implement <carbon-location> #4

Merged
merged 1 commit into from
Feb 11, 2016
Merged

Implement <carbon-location> #4

merged 1 commit into from
Feb 11, 2016

Conversation

cdata
Copy link
Contributor

@cdata cdata commented Feb 10, 2016

  • <carbon-router> has been re-imagined as the more obscure, more
    unwieldy <carbon-route-converter> aka "do not use unless you know
    what you are doing."
  • <carbon-location> is a macro element that composes
    <iron-page-url>, <iron-query-params> and
    <carbon-route-converter>

@cdata
Copy link
Contributor Author

cdata commented Feb 10, 2016

Advanced apologies for not properly git mv'ing the test for carbon-router.

queryParams: {
type: Object,
value: function() {return {};},
notify: true,
},

/**
* The serialized path through the route tree.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The serialized/deserialized path through the route tree is accurate but maybe not super helpful without some more verbiage that grounds it in terms that users are more familiar with. I think it's also worth pointing out that route is intended to be handed to carbon-route objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix.


test('it reflects queryParams values to location.search', function() {
carbonLocation.set('route.queryParams.foo', 1);
expect(window.location.search).to.match(/foo=1/);
Copy link
Collaborator

Choose a reason for hiding this comment

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

🍰

@rictic
Copy link
Collaborator

rictic commented Feb 11, 2016

LGTM! One optional comment

 - `<carbon-router>` has been re-imagined as the more obscure, more
   unwieldy `<carbon-route-converter>` aka "do not use unless you know
   what you are doing."
 - `<carbon-location>` is a macro element that composes
   `<iron-page-url>`, `<iron-query-params>` and
   `<carbon-route-converter>`
cdata added a commit that referenced this pull request Feb 11, 2016
@cdata cdata merged commit bc10ce0 into master Feb 11, 2016
@cdata cdata deleted the implement-carbon-location branch February 11, 2016 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants