Christyanz / angular-elements-chat-widget

Chat Widget built with Angular Elements

Home Page:https://angular-elements-chat-widget.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat Widget built with Angular Elements

Angular Elements allows you to create Custom Elements (from the WebComponents spec) from Angular Components.

This means that those components can be used outside of an Angular app!

Project Structure

The project is a standard Angular 6 project with a few additions:

src/app/element.module.ts   Module with the component to be used as Angular Element. Imported by App Module
src/main.element.ts         bootstrap the Element Module
src/polyfills.element.ts    polyfills for the Element Module
build-elements.js           script to generate the exported file and demo project

Development

The component can be developed as any other Angular component: run ng serve and navigate to http://localhost:4200/.

Build

The build configuration of the Angular Elements is defined in a separate project in angular.json.

You can run this configuration with npm run build:elements. It creates a build in dist/elements-build that only contains ElementModule.

After this build the ./build-elements.js script creates the final js file and demo project in dist/elements.

About

Chat Widget built with Angular Elements

https://angular-elements-chat-widget.now.sh/

License:MIT License


Languages

Language:TypeScript 61.3%Language:CSS 18.5%Language:HTML 12.0%Language:JavaScript 8.2%