-
-
Save bigopon/b0803983cdb504a8d96e2fa9364d5ab6 to your computer and use it in GitHub Desktop.
Revisions
-
sjarvela revised this gist
Mar 11, 2021 . 9 changed files with 28 additions and 28 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <div style="color: red; border: 1px solid red">This is custom element A</div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import { customElement, bindable } from "aurelia"; import template from "./custom-element-a.html"; @customElement({ name: "custom-element-a", template }) export class CustomElementA { } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <import from="./custom-element-a"></import> <div style="border: 1px solid blue"> <div style="color: blue">This is custom element B</div> <span>And here should be custom element A:</span> <custom-element-a></custom-element-a> <span>(but it is not rendered)</span> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import { customElement, bindable } from "aurelia"; import template from "./custom-element-b.html"; @customElement({ name: "custom-element-b", template }) export class CustomElementB { } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ <import from="./custom-element-a"></import> <import from="./custom-element-b"></import> <h1>Custom elements</h1> <h2>Custom element A directly under app</h2> <custom-element-a></custom-element-a> <h2>Custom element A inside custom element B</h2> <custom-element-b></custom-element-b> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +0,0 @@ -
sjarvela revised this gist
Mar 11, 2021 . 2 changed files with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ <import from="./my-custom-element"></import> <div style="border: 1px solid blue"> <div style="color: blue">This is from custom element B</div> <span>And here should be custom element A:</span> <my-custom-element></my-custom-element> <span>(but it is not rendered)</span> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ <div style="color: red; border: 1px solid red">This is from custom element A</div> -
sjarvela revised this gist
Mar 11, 2021 . 2 changed files with 7 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ <import from="./my-custom-element"></import> <div style="border: 1px solid blue"> <div style="color: blue">This is from another custom element</div> <span>And here should be red "my-custom-element" inside "my-another-custom-element":</span> <my-custom-element></my-custom-element> <span>(but it is not rendered)</span> </div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ <div style="color: red; border: 1px solid red">This is from custom element</div> -
sjarvela created this gist
Mar 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Dumber Gist</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> <base href="/"> </head> <!-- Dumber Gist uses dumber bundler, the default bundle file is /dist/entry-bundle.js. The starting module is pointed to "main" (data-main attribute on script) which is your src/main.js. --> <body> <my-app></my-app> <script src="/dist/entry-bundle.js" data-main="main"></script> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ { "dependencies": { "aurelia": "latest" } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ import Aurelia from 'aurelia'; import { MyApp } from './my-app'; Aurelia.app(MyApp).start(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ <import from="./my-custom-element"></import> <div style="color: blue">This is from another custom element</div> <span>And here should be red "my-custom-element" inside "my-another-custom-element":</span> <my-custom-element></my-custom-element> <span>(but it is not rendered)</span> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import { customElement, bindable } from "aurelia"; import template from "./my-another-custom-element.html"; @customElement({ name: "my-another-custom-element", template }) export class MyAnotherCustomElement { } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <import from="./my-custom-element"></import> <import from="./my-another-custom-element"></import> <h1>Custom elements</h1> <h2>Custom element directly under app</h2> <my-custom-element></my-custom-element> <h2>Custom element inside another custom element</h2> <my-another-custom-element></my-another-custom-element> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ export class MyApp { } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <div style="color: red">This is from custom element</div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import { customElement, bindable } from "aurelia"; import template from "./my-custom-element.html"; @customElement({ name: "my-custom-element", template }) export class MyCustomElement { }