Giter Site home page Giter Site logo

waylandfield / angular-library-to-web-components-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marsibarsi/angular-library-to-web-components-demo

0.0 1.0 0.0 692 KB

Home Page: https://marsibarsi.github.io/angular-library-to-web-components-demo/native-demo/index.html

HTML 13.04% CSS 11.26% JavaScript 10.80% TypeScript 64.17% Shell 0.74%

angular-library-to-web-components-demo's Introduction

AngularLibraryToWebComponentsDemo

This is an Angular workspace that contains:

  • Two sample libraries with three Angular components
  • Angular demo application with one component showing the three Angular components exchanging data
  • The same native page with Web Components compiled from Angular components
  • Project "elements" with compilation from Angular to Web components

Commands

  • ng serve — start an Angular demo app with Angular components
  • npm run build:elements — build single JS file Web Components from Angular components

Key points

  • angular.json contains configuration of application for Angular Elements compilation

  • package.json contains:

    • [email protected]
    • @angular/elements added using ng add @angular/elements --project=elements command
    • @angular-builders/custom-webpack added using ng add @angular-builders/custom-webpack --project=elements command
    • build:elements script
  • 'elements' project contains several scripts for easy building proccess

  • ElementModule — abstract class implementing the whole Angular Element adding process

  • native-demo page — an example with three bundled Web Components exchanging data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.