Skip to content

A web-component sample developed using just vanilla JavaScript

Notifications You must be signed in to change notification settings

lucasajc/web-component-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Component Sample

Introduction

This web component sample, src/components/filmCard, displays Star Wars opening crawls (those letters present on every movie of the franchise) everytime the user clicks on a specific button. The element keeps the state of the component, knowing if the display is opened or closed applying the matching CSS for each situation.

The Star Wars data is collected from the SWAPI (Star Wars API).

Running

Firstable, install the dependencies running:

$ npm install

To run locally, type:

$ npm run start:dev

To generate build files:

$ npm run build

About

A web-component sample developed using just vanilla JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages