Creating Components in Apex
Creating components on the server side in Apex, using the
Cmp.<myNamespace>.<myComponent>
syntax, is deprecated. Use
$A.createComponent()
in client-side JavaScript code instead.
See Also:
Dynamically Creating Components