Skip to main content
Inline JavaScript

Prevent the use of inline JavaScript to ensure proper separation of concern between model and view in your Lightning components.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over a week ago

Rationale

Inline JavaScript should be avoided in Lightning Components, except when referencing JavaScript controller methods in the component's markup. This is recommended in order to ensure proper separation of concern between model and view in your lightning components.

Scope

  • Lightning components

Did this answer your question?