0.2.11 • Published 5 years ago
@asuncode/ng2element v0.2.11
Convert Ng App to Ng element
- go to your exist angular project folder
- run
ng add @asuncode/ng2element
- run
npm run build:ngelement
- then, you will get a
<projectname>-element.js
file inroot/elements/
TEST
- create a folder, for example demo
- in demo folder, create a index.html
copy
<projectname>-element.js
to demo folder├── demo/ ├── index.html ├── projectname-element.js
index.html:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>Document</title> <script src="<projectname>-element.js"></script> </head> <body> <projectname-element></projectname-element> </body> </html>
- Open live server: http://localhost:5500
- it should work that is web component by angular element.
Thanks
0.2.23
5 years ago
0.2.22
5 years ago
0.2.21
5 years ago
0.2.20
5 years ago
0.2.19
5 years ago
0.2.18
5 years ago
0.2.17
5 years ago
0.2.16
5 years ago
0.2.15
5 years ago
0.2.14
5 years ago
0.2.13
5 years ago
0.2.12
5 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.1
6 years ago
0.0.0
6 years ago
0.0.3
6 years ago