function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Frederick H LaneFrederick H Lane 

Visual Studio Code - Difference between Lightning Web Components and Lightning Components

Why sre bundles created on Lightning Web Components (with the html file included), and some are Lightning Components (within the aura framework)
What,s the difference and when to use?
Alain CabonAlain Cabon
@Frederick H Lane

The Lightning Web Components (with the html file included) and the Lightning Components (within the aura framework) have the same role but they are very different for the writing.

When you look at the content, you will see very close components for the widgets at first glance.

Aura components follow the name format namespace:componentName, with a colon that separates the namespace and component name. Lightning web components follow the name format namespace-component-name, with a dash that separates the namespace and component name.

https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.migrate_map_aura_lwc_components

The difference for the name format of the components inside the template is just one (important) point among many others.
 
Frederick Lane 19Frederick Lane 19
That explains then, why some tutors teach within the Aura Framework and some teach within html (template tags). It simply comes down to a personal preference?
Alain CabonAlain Cabon
The differences are here: 
 https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.migrate_base_components

In fact, there are two technologies with different syntax: Aura based component and Lightning Web Component.

We are moving towards the new Lightning Web Component (recent) because they are the fastest ones and they are more close to the standard technologies around javascript that people habitually use for the forms. 

Aura Components are more "closed" for code sharing in javacript but the security of the LW Components is also very strong with their Shadow Dom. 

LWC cannot be created with the developer console but the new feature of the local tests for LWC will make them quick to develop also.