1
1
ember-web-component-container
2
2
==============================================================================
3
3
4
- [ Short description of the addon. ]
5
-
4
+ This addon exposes your Ember app as a standard WebComponent,
5
+ which makes it much easier to integrate in existing applications.
6
6
7
7
Compatibility
8
8
------------------------------------------------------------------------------
@@ -23,14 +23,30 @@ ember install ember-web-component-container
23
23
Usage
24
24
------------------------------------------------------------------------------
25
25
26
- [ Longer description of how to use the addon in apps.]
26
+ Once the addon is installed, you can remove the ` <link> ` tags fron your ` index.html ` .
27
+
28
+ The CustomElement that is created is the dasherised version of the application name:
29
+ If your app is ` my-devilish-venture ` , add ` <my-devilish-venture></my-devilish-venture> `
30
+ to your ` index.html ` to start the app.
31
+
32
+ ** note** : CustomElement MUST be dasherized names. In case your application
33
+ is single-worded (as in "mononoke"), the addon will expose
34
+ ` mononoke-app ` (Note the ` -app ` prefix) for compliance.
27
35
36
+ ** note** : We aso recommend that you remove the addon ` export-application-global ` .
37
+ The application itself is accessible from the Custom Element itself as follows:
38
+ ` document.querySelector("my-devilish-venture").__EMBER_APPLICATION `
28
39
29
40
Contributing
30
41
------------------------------------------------------------------------------
31
42
32
43
See the [ Contributing] ( CONTRIBUTING.md ) guide for details.
33
44
45
+ ### TODO
46
+
47
+ * Deal with attributes and slots
48
+ * JS isolation
49
+
34
50
35
51
License
36
52
------------------------------------------------------------------------------
0 commit comments