You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes in our documentation we might want to bring someone's attention to something, either as a warning or a quick suggestion. We have a qwirky component that can be used for exactly this
4
+
5
+
## Usage
6
+
7
+
```handlebars
8
+
<EsNote>You should try out this cool note component</EsNote>
9
+
```
10
+
11
+
If you don't pass in a specific mascot (either `tomster` or `zoey`) then it will randomly pick between them. Try refreshing the page now and see them change!
12
+
13
+
You might notice on this page that they flicker a little bit and seem to swap between a Tomster and a Zoey sometimes just after rendering. This is related to how we are pre-rendering this page and then when the page is loaded Ember will re-run the code that picks the mascot that is displayed.
14
+
15
+
In **all** cases where we are pre-rendering a page using fastboot or prember, we **must** pass in the `@mascot` argument to the component.
16
+
17
+
```handlebars
18
+
<EsNote @mascot="tomster">I am a Tomster, and I approve this message</EsNote>
19
+
```
20
+
21
+
```handlebars
22
+
<EsNote @mascot="zoey">I am a Zoey, and I approve this message</EsNote>
0 commit comments