Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 359 Bytes

no-deprecated-component-creation.md

File metadata and controls

17 lines (11 loc) · 359 Bytes

Prevent usage of deprecated component creation methods (no-deprecated-component-creation)

All the component creation APIs outside $A.createComponent are deprecated.

Rule Details

The following pattern is considered an error:

$A.newCmp('ui:button');

Example of correct code:

$A.createComponent('ui:button', params, callback);