Skip to content

Instantly share code, notes, and snippets.

View aelbore's full-sized avatar

Jay aelbore

View GitHub Profile
@aelbore
aelbore / angular-elements.md
Last active July 6, 2019 16:17
Step by Step Guide for create Angular Elements

Getting Started

ng new ng-elements --enable-ivy

Create and Build HelloWorldElements

  • Remove all the files in src/app folder
  • Add hello-world.ts file in src/app folder
  • Add Component
@aelbore
aelbore / vue-to-js.md
Last active February 1, 2019 03:40
vue file to js file
const ts = require('typescript');
const fs = require('fs');
const path =  require('path');
const prettier = require('prettier');

const { promisify } = require('util');
const { globFiles, clean, mkdirp } = require('aria-fs');

const writeFileAsync = promisify(fs.writeFile);

Getting Started

  • Install Dependencies
    npm init -y
    npm install --save-dev vue @vue/cli http-server
    

Create Web Component

  • Create vue component src/my-component.vue.
    <template>