Skip to content

Commit

Permalink
Adds guide to explain how to attach component to a specific element - F…
Browse files Browse the repository at this point in the history
…ixes #18
  • Loading branch information
mairatma authored and jbalsas committed Jan 18, 2018
1 parent b7011d1 commit 1d7ad2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/metaljs.com/src/partials/docs.soy
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
<li class="docs-nav-item">
<a href="/docs/component-lifecycle.html" class="docs-nav-link">Component Lifecycle</a>
</li>
<li class="docs-nav-item">
<a href="/docs/rendering-components.html" class="docs-nav-link">Rendering Components</a>
</li>
<li class="docs-nav-item">
<a href="/docs/inline-events.html" class="docs-nav-link">Inline Events</a>
</li>
Expand Down
7 changes: 7 additions & 0 deletions packages/metaljs.com/src/public/docs/index.soy
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@
instantiated directly by calling <code>new metal.Modal();</code>.
</p>

<p>
By default this will append the component to the document's body. If you
want though, you can specify where it should be rendered. Check the guide
about <a href="/docs/rendering-components.html">rendering components</a> to
find out how.
</p>

<h2>Hello World</h2>

<p>
Expand Down

0 comments on commit 1d7ad2e

Please sign in to comment.