Code reuse with web language

3

I'm working on three different apps that use Ionic and Cordova . The three are very similar in some points mainly in the layout.

I wonder if it's possible to create a kind of library or something that I modify only once and replicate to all three projects, such as inheritance in some other languages.

If anyone knows what this is called or has some material or knowledge please share.

  

NOTE: The languages I use are JavaScript, HTML, and CSS.

    
asked by anonymous 21.10.2016 / 18:03

1 answer

2

The name of what you want is Web Components ( link )

Here's a Portuguese introduction on: link

Can be done with pure JS or with JS libraries like Polymer

    
24.10.2016 / 19:35