I found @DougChasman using


in his example here How to set up views and navigation in Lightning?

However in the docs I see only $A.newCmpAsync and marked DEPRECATED.

Is that example referenced above no longer working in it's exact form?

Only in case it's no longer working: since there are only rare examples of that kind, wouldn't it be worth for us as community to update it to be compatible with the current release and today's best practices?

  • 1
    I've updated my post above to use the latest and greatest (did not exist when I wrote it) Oct 29 '15 at 18:48
  • Thanks @DougChasman, your post is one of the most important about Lightning navigation and since it differs a lot from Visualforce it will help us with that transition.
    – Uwe Heim
    Oct 29 '15 at 20:11

The latest reference docs at [your-domain]/auradocs/reference.app should now show $A.createComponent as the standard for Winter '16. You can also look at the LC Dev Guide topic on Dynamically Creating Components for an example.

  • 1
    Thanks a lot for your feedback. I'll point that link also a comment to the OP referenced above
    – Uwe Heim
    Oct 29 '15 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.