3

The lifecycle of Lightning Component is weird for me. A sub component needs to be initialized with data of its parent component's attribute. However sometimes it works fine, sometimes does not. Are there docs for details?

6
  • Not sure I understand. Are you just looking for the Lightning docs?
    – Kris Gray
    May 6, 2015 at 5:42
  • @KrisGray thanks, Kris. Not just looking for Lightning docs. I have read 'developer guide'. Sometimes a sub component is needed to enhance its parent with sub's client-side controller since the limitations of built-in Expression. But I find that the initialization cycle is a little wired, not very clearly. In other words, the outline of initialization is wanted.
    – Leo
    May 6, 2015 at 6:43
  • Can you give an example?
    – Kris Gray
    May 6, 2015 at 6:44
  • Thanks, Kris. When the code is organised, I will post it later on.
    – Leo
    May 6, 2015 at 7:01
  • @KrisGray Is there a package for Salesforce1 which can be used in Xcode to run with iPhone Simulator?That developer can work within 'simulated' Salesforce1 native app, not browser web app. Thanks in advance.
    – Leo
    May 11, 2015 at 12:00

1 Answer 1

2

Does this doc link help? https://developer.salesforce.com/docs/atlas.en-us.196.0.lightning.meta/lightning/components_lifecycle.htm

Note that this is a link to the preview version of our Summer '15 release. We updated the topic for this release.

Any feedback is welcome if we're not answering your question.

1
  • Glad to hear it. Keep the questions coming! May 11, 2015 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .