★ wanayoo — archive 1999 https://github.com/AndrewJBateman/angular-elements-studyNouvelle recherche | Portail wanayoo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Angular Elements Study

An Angular 8 app that uses @angular/elements for lazy loading of images.

*** Note: to open web links in a new window use: ctrl+click on link**

Table of contents

General info

  • "Angular elements are Angular components packaged as custom elements, a web standard for defining new HTML elements in a framework-agnostic way."

  • @angular/elements do the following:

  1. Optimize Lighthouse performance with Angular Elements
  2. Maintain predictible component state
  3. Expose public methods
  4. Emit public events
  5. Project content with slots
  • Custom Elements are not supported by all browsers. They are supported by Chrome, Firefox, Opera, and Safari. They are available in other browsers by using polyfills.

Screenshots

Example screenshot

Technologies

Setup

  • Run app using ng serve then navigate to http://localhost:4200/.

Code Examples

Features

  • Updated to Angular 8.

  • Lazy loading of images according to the users scroll position.

  • Improved lighthouse score.

Status & To-Do List

  • Status: Updated to Angular 8 and no dependency vulnerabilities. ng serve and ng build processes start but I get error: ERROR in Could not resolve module @angular/core

  • To-Do:

  1. Fix @angular/core problem & do npm install.
  2. Add firestore keys using .env file
  3. I ran a Chrome dev audit and it only passed 1 out of 5 tests. There are a number of improvements that can be made to pass all 5 tests.

Inspiration

Contact

Repo created by ABateman - feel free to contact me!

About

Blog to learn angular elements and how to pass chrome lighthouse audits

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.