Digital project development and design has always shifted toward new standards over the course of time. Which is why industry professionals are always learning and training in new skills. In the new mobile era, the world of web platforms and applications changes fast. The standard that is set to dominate the digital present and future are web components, a new style that was brilliantly illustrated by developer Carlos Azaustre at BBVAOpen4U.
Web components allow web and mobile applications to be developed using small sets comprised of the usual elements: HTML, JavaScript and CSS. Each of these fragments is called a component and is independent from the rest: they are like parts of an engine. They can form a part of a whole, and separately can be used in other developments. They are reusable. They are also standardized, as they originated at Google and have the blessing of the W3C.
There are several tools that can help you get started developing with web components.
Polymer is a set of lightweight libraries that allow programmers to get the most out of applications built using web components, chiefly because it allows the use of Polyfills. What are Polyfills? They are fragments of code that get new HTML5 functionalities working on all browsers. Users often don’t have the latest versions of the most popular browsers installed, whether it be Internet Explorer, Mozilla Firefox or Google Chrome. Using Polyfills means users will still enjoy the full features of a website even in older browsers.
The ultimate goal is not only to create small capsules or blocks of code comprised of HTML, Java Script and CSS that can be used on several projects at once (known as Custom Elements). Polymer also aims to support programming in code that is cleaner and easier to render on any version of any browser. Which will also eventually have a significant impact on load times for projects.
Furthermore, Polymer includes two features that are very appealing to developers:
– Support for HTML Imports: this allows scripts, style sheets and web sources to be loaded to an HTML document simply and in groups. This article from ‘webcomponents.org’ provides a perfect overview of how to import one HTML document within another.
For example, an HTML document called component.html may contain a number of custom elements such as a script and style sheet (CSS):
<link rel=”stylesheet” href=”css/style.css”>
<script src=”js/script.js”></script>
This code fragment may be included in another common source HTML documents such as index.html, with the HTML Imports function:
<link rel=”import” href=”component.html”>
– Shadow DOM: Polymer also has a feature called Shady DOM, supporting the development of custom elements that can be included in the Shadow DOM, without this mixing or interfering with other parts of the code when rendered by the browser. The Shadow DOM was previously a part of the DOM that was only accessible to browser developers to establish complex components such as video and audio. Now Polymer provides some access to this encapsulated segment of the DOM within the DOM itself. A useful tutorial is available here.
X-Tag is an open source JavaScript library created by Daniel Buchner, then at Mozilla and now with Microsoft, which allows the development of web components based on the W3C standard. X-Tag might be described as the Polymer that has been backed by the company now overseen by Satya Nadella.
Polymer and X-Tag are very similar, but there is one important difference. The library created by Google is compatible with features available on most modern browsers, such as Custom Elements, Shadow DOM and HTML Imports, while the X-Tag library only offers aspects related with custom elements using APIs. To include other web components features, such as Shadow DOM, developers need to use other polyfills combined with X-Tag. Why so? Because X-Tag creators believe that to build web components all you really need to use is custom elements.
To establish Custom Elements screens with X-Tag, said library offers the xtag.register() method, which probably stands out from the rest, allowing programmers to define the object content within the DOM. Here is a tutorial.
xtag.register(‘my-element’, {
content: function () {/* <p>Hello there</p> <div> <p>This is a multi-line template</p> </div> */}
});
X-Tag is compatible with all browsers: Internet Explorer, Mozilla Firefox, Google Chrome, Chrome Android, Safari (for OS X and iOS), Opera and Edge.
AngularJS / Ember JS / BackboneJS
At BBVAOpen4U we have specifically discussed AngularJS, EmberJS and BackboneJS. All are development frameworks or libraries in JavaScript and are based on the Model-View-Controller paradigm for developing user interfaces or front-ends. And all include aspects for creating custom elements within the DOM, such as fragments of independent code that can be reused in other applications.
The use of directives by AngularJS offered a great starting point for the web components concept. AngularJS directives allow an HTML document to be extended via the creation of the encapsulated, independent and reusable code fragments. Finally, tags with new attributes are included, which are subsequently recognized by the browser. This offers benefits such as cleaner and simplified JQuery code, as well as easier application design and development, making the process similar to building with a Meccano set.
<script type=”text/x-handlebars” id=”components/blog-post”>
<h1>Blog Post</h1>
<p>Lorem ipsum dolor sit amet.</p>
</script>
Then you take that custom component to the original HTML template:
<h1>My Blog</h1>
{{#each post in model}}
{{blog-post}}
{{/each}}
BackboneJS also allows independent modules to be built to provide a structure for interfaces on various projects. Marionette.js is often used to include this feature. This is a complementary development to BackboneJS, which makes for much faster use of web components. Here is a good guide to development with Marionette.
In the dynamic world of payments, a new star has emerged in recent years: Buy Now Pay Later (BNPL), i.e. short-term financing that allows you to buy now and pay later. This model allows businesses to purchase goods or services and pay for them in installments, often interest-free, making it an attractive alternative to credit […]
BBVA and Vecttor, Cabify’s subsidiary engaged in managing vehicles with drivers, have entered into an alliance that saves time and provides security to the company and its drivers. The collaboration allows drivers to deposit cash collections at any BBVA ATM and Vecttor to automatically reconcile this activity from their accounts with those in the company’s […]
BBVA has been recognized by Global Finance as the bank with the best global open banking offer for companies. This award comes on top of 12 other recognitions the magazine has bestowed on the company, such as the best bank for corporate clients and the one recognizing its AI factory as one of the best […]
Please, if you can't find it, check your spam folder
×
The email message with your ebook is on the way
We have sent you two messages. One with the requested ebook and one to confirm your email address and start receiving the newsletter and/or other commercial communications from BBVA API_Market
×
PROCESSING OF PERSONAL DATA
Who is the Data Controller of your personal data?
Banco Bilbao Vizcaya Argentaria, S.A. (“BBVA“) with registered address at Plaza de San Nicolás 4, 48005, Bilbao, España and Tax ID number A-48265169 . Email address: contact.bbvaapimarket@bbva.com
What for and why does BBVA use your personal data for?
For those activities among the following for which you give your consent by checking the corresponding box:
to receive newsletter from BBVA API_Market through electronic means;
to send you commercial communications, events and surveys relating to BBVA API_Market to the e-mail address you have provided.
For how long we will keep your data?
We will keep your data until you unsubscribe from receiving our newsletter or, if applicable, the commercial communications, events and surveys to which you have subscribed. Whether you unsubscribe or whether BBVA decides to end the service, your details will be deleted.
How can I unsubscribe to stop receiving newsletters and/or communications from BBVA API_Market?
You can unsubscribe at any time and without need to indicate any justification, by sending an email to the following address: contact.bbvaapimarket@bbva.com
To whom will we communicate your data?
We will not transfer your personal data to third parties, unless it is mandatory by a law or if you have previously agreed to do so.
What are your rights when you provide us with your information?
You will be able to consult your personal data included in BBVA files (access right)
You can modify your personal data when they are inaccurate (correction right)
You may request that your personal data not be processed (opposition right)
You may request your personal data be deleted (suppression right)
You can request a limitation on the processing of your data in the allowed cases (right of limitation of processing)
You will be able to receive, in electronic format, the personal data you have provided to us, as well as to transmit them to another entity (portability right)
You are responsible for the accuracy of the personal data you provide to BBVA and to keep them duly updated. If you believe that we have not processed your personal data in accordance with regulations, you can contact the Data Protection Officer of BBVA at the following address dpogrupobbva@bbva.com.
You can find more information in the “Personal Data Protection Policy” document on this website.
×
PROCESSING OF PERSONAL DATA
Who is the Data Controller of your personal data? Banco Bilbao Vizcaya Argentaria, S.A (“BBVA“), with registered address at Plaza de San Nicolás 4, 48005, Bilbao, España, and Tax ID No. A-48265169. Email address:contact.bbvaapimarket@bbva.com
What for and why does BBVA use your personal data for?
For the execution and management of your request, specifically, download the requested e-book/s.
BBVA informs you that, unless you indicate your opposition by sending an email to the following address: contact.bbvaapimarket@bbva.com, BBVA may send you commercial communications, surveys and events related to products and/or services of BBVA API Market through electronic means.
For how long we will keep your data?
We will keep your data as long as necessary for the management of your request, and to receive commercial communications, events and surveys. BBVA will keep your data until you unsubscribe to stop receiving our newsletters or, where appropriate, until the end of the service. Afterwards, we will destroy your data.
How can I unsubscribe to stop receiving newsletters and/or communications from BBVA API Market?
You can unsubscribe at any time and without need to indicate any justification, by sending an email to the following address: contact.bbvaapimarket@bbva.com
To whom will we communicate your data?
We will not transfer your personal data to third parties, unless it is mandatory by a law or if you have previously agreed to do so.
What are your rights when you provide us with your information?
You will be able to consult your personal data included in BBVA files (access right)
You can modify your personal data when they are inaccurate (correction right)
You may request that your personal data not be processed (opposition right)
You may request your personal data be deleted (suppression right)
You can request a limitation on the processing of your data in the allowed cases (right of limitation of processing)
You will be able to receive, in electronic format, the personal data you have provided to us, as well as to transmit them to another entity (portability right)
You can exercise before BBVA the aforementioned rights through the following address: contact.bbvaapimarket@bbva.com
You are responsible for the accuracy of the personal data you provide to BBVA and to keep them duly updated.
If you believe that we have not processed your personal data in accordance with the regulations, you can contact the Data Protection Officer at the following address: dpogrupobbva@bbva.com
You can find more information in the “Personal Data Protection Policy” document on this website.
Banco Bilbao Vizcaya Argentaria, S.A. owner of this portal uses cookies and/or similar technologies of its own and third parties for the purposes of personalization, analytics, behavioral advertising or advertising related to your preferences based on a profile prepared from your browsing habits (e.g. pages visited). If you wish to obtain more detailed information, consult our Cookies Policy.
Cookie settings panel
These are the advanced settings for first-party and third-party cookies. Here you can change the parameters that will affect your browsing experience on this website.
Technical Cookies (required)
These cookies are used to give you secure access to areas with personal information and to identify you when you log in.
Name
Owner
Duration
Description
gobp.lang
BBVA
1 month
Language preference
aceptarCookies
BBVA
1 year
Configuration Accepted Cookies
_abck
BBVA
1 year
Helps protect against malicious website attacks
bm_sz
BBVA
4 hours
Helps protect against malicious website attacks
ADRUM_BTs
Salesforce Marketing Cloud
Session
Required for monitoring of the service, inherent to SFMC
ADRUM_BT1
Salesforce Marketing Cloud
Session
Required for monitoring of the service, inherent to SFMC
ADRUM_BTa
Salesforce Marketing Cloud
Session
Required for monitoring of the service, inherent to SFMC
ADRUM_BT
Salesforce Marketing Cloud
Session
Required for monitoring of the service, inherent to SFMC
xt_0d95e
Salesforce Marketing Cloud
Session
Remember user preferences (if any)
__s9744cdb192d044faa1bf201d29fafd1e
Salesforce Marketing Cloud
Session
Remember user preferences (if any)
wpml_browser_redirect_test
WPML
Session
Text translation in the portal
wp-wpml_current_language
WPML
24 hours
Text translation in the portal
They are used to track the activity or number of visits anonymously. Thanks to them we can constantly improve your browsing experience
Your browsing experience is constantly improving.
With your selection, we cannot offer you a continuously improved browsing experience.
Name
Owner
Duration
Description
AMCV_***
Adobe Analytics
Session
Unique Visitor IDs used in Cloud Marketing solutions
AMCVS_***
Adobe Analytics
2 years
Unique Visitor IDs used in Cloud Marketing solutions
demdex (safari)
Adobe Analytics
180 days
Create and store unique and persistent identifiers
sessionID
Adobe Analytics
Session
Launch's internal cookie used to identify the user
gpv_URL
Adobe Analytics
Session
Adobe Analytics plugin: getPreviousValue Capture the value of a certain variable in the following page view, in this case the prop1
gpv_level1
Adobe Analytics
Session
Cookie used to store the DataLayer levl1 of the previous page.
gpv_pageIntent
Adobe Analytics
Session
Cookie used to store the pageIntent of the previous page.
gpv_pageName
Adobe Analytics
Session
Cookie used to store the pagename of the previous page.
aocs
Adobe Analytics
Session
Cookie that stores the first values collected at the beginning of a process.
TTC
Adobe Analytics
Session
Cookie used to store the time between the App Page Visit event and the App Completed event.
TTCL
Adobe Analytics
Session
Cookie used to store the time between the LogIn event and App Completed.
s_cc
Adobe Analytics
Session
Determine if cookies are active
s_hc
Adobe Analytics
Session
Cookie used by Adobe for analytical purposes
s_ht
Adobe Analytics
Session
Cookie used by Adobe for analytical purposes
s_nr
Adobe Analytics
2 years
Determine the number of user visits
s_ppv
Adobe Analytics
Permanent
Adobe Analytics plugin: getPercentPageViewed Determine what percentage of the page a user views
s_sq
Adobe Analytics
Session
ClickMap/ActivityMap features
s_tp
Adobe Analytics
Session
Cookie used by Adobe for analytical purposes
s_visit
Adobe Analytics
2 years
Cookie used by Adobe to know when a session has been started.
They allow the advertising shown to you to be customized and relevant to you. Thanks to these cookies, you will not see ads that you are not interested in.
The advertising is customized to you and your preferences.
Your choice means you will not see customized ads, only generic ones.
Name
Owner
Duration
Description
OT2
VersaTag
90 days
VersaTag Cookie used to store a user id and the number of user visits.
u2
VersaTag
90 days
VersaTag Cookie where the user ID is stored
TargetingInfo 2
MediaMind
1 year
Cookie that serves to assign a unique random number that generates MediaMind.
These cookies are related to general features such as the browser you use.
Your experience and content have been customized.
With your selection, we cannot offer you a continuously improved browsing experience.
Name
Owner
Duration
Description
mbox
Adobe Target
9 days
Cookie used by Adobe Target to test user experience customization.
×
Looks like you’re browsing from Mexico, so let’s show you the custom content for your
location. Change
Looks like you’re browsing from Spain, so let’s show you the custom content for your
location. Change
Select a country
In order to access the private area and corresponding sandbox, select the country of the APIs you want to use.