2

I'm building some lightning component in the developer console, so I have some aura:component. But I would like to see those component, I have create them but I'm not able to see them because I don't know where I should go to do that in salesforce ...

I'm not sure if my question is clear, so thank you for your help and I can try explain myself better if you need.

1

1 Answer 1

2

One way:

goto - developer console

enter image description here

Create a lightning App and add you component here and click on right side preview button This will open application and you can see your component..

You need to add

<c:yourcomponentName  />

If there are few attribute you have created in component then you need pass value

<c:yourcomponentName  attributeName="value" anotherAttribute="Value" />

enter image description here

You can also use Lightning App builder..

Note: You need to add implement in your component.

implements="force:appHostable,flexipage:availableForAllPageTypes,
                                        forceCommunity:availableForAllPageTypes"
2
  • Thank you @Ratan I just tested it and it's working for some ligthning component. But sometimes I get some error, like "Aura.loadComponent(): Failed to initialize application." And it tell me there is an error with the connection but so why does some of my app are working ? Anyway I thank you for the detailled answer :)
    – dou
    Mar 9, 2016 at 9:10
  • @dou I am not sure, may be for few your components having fault code that may be causing error, just guessing.
    – Ratan Paul
    Mar 9, 2016 at 9:14

You must log in to answer this question.

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