Skip to content

#588 components/contextual-components - #614

Merged
rwjblue merged 2 commits into
ember-learn:octanefrom
betocantu93:components/contextual-components
Mar 16, 2019
Merged

rwjblue merged 2 commits into
ember-learn:octanefrom
betocantu93:components/contextual-components

Conversation

@betocantu93

Copy link
Copy Markdown
Contributor

[`{{component}}`](https://www.emberjs.com/api/ember/release/classes/Ember.Templates.helpers/methods/component?anchor=component)
helper can be used to defer the selection of a component to run time. The
`<MyComponent />` syntax always renders the same component, while using the
`<MyComponent/>` syntax always renders the same component, while using the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jenweber @pzuraq is this the style we should use throughout the guides? No space?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ya, we should have a space here.

Suggested change
`<MyComponent/>` syntax always renders the same component, while using the
`<MyComponent />` syntax always renders the same component, while using the

[`{{component}}`](https://www.emberjs.com/api/ember/release/classes/Ember.Templates.helpers/methods/component?anchor=component)
helper can be used to defer the selection of a component to run time. The
`<MyComponent />` syntax always renders the same component, while using the
`<MyComponent/>` syntax always renders the same component, while using the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ya, we should have a space here.

Suggested change
`<MyComponent/>` syntax always renders the same component, while using the
`<MyComponent />` syntax always renders the same component, while using the


The first parameter of the helper is the name of a component to render, as a
string. So `{{component 'blog-post'}}` is the same as using `<BlogPost />`.
string. So `{{component 'blog-post'}}` is the same as using `<BlogPost/>`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
string. So `{{component 'blog-post'}}` is the same as using `<BlogPost/>`.
string. So `{{component 'blog-post'}}` is the same as using `<BlogPost />`.

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for working on this! Just two small tweaks / suggestions then this is good to go...

@betocantu93 betocantu93 mentioned this pull request Mar 16, 2019
5 of 8 tasks

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@rwjblue
rwjblue merged commit fe729b6 into ember-learn:octane Mar 16, 2019
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.

3 participants