• Yogini K 7
  • NEWBIE
  • 5 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
MY component is
<aura:component >
    
    <aura:attribute name="num1" type ="integer" default ="30"/>
    <aura:attribute name="num2" type ="integer" default ="10"/>
    <aura:attribute name="sum" type ="integer"/>
    {!v.num1}+{!v.num2} = {!v.sum}
    <!--Press button to add numbers and display sum-->
    <br></br>
    <ui:button label="Add Numbers" press="{!c.add}"/>
</aura:component>
====================================================================================
CONTROLLER 
({
    add : function(component) {
    var addval=component.get("v.num1")    + component.get("v.num2");
    component.set("v.sum",addval);
    }
    
})
And error is 
This page has an error. You might just need to refresh it.
Unknown controller action 'add' Failing descriptor: {markup://devloper:addcmp}
Please solve 
Thanks
Chandan

Hi,

 

Is there any way that i can search for any text in a class/page while working in Developer Console. I have a long class with thousand lines of code and need to find some specific text in that class. Browsers 'Ctr + F' does not works. It only shows me the search results from the few lines of code that is visible on the page.

 

Does DC provides any search text box which i am missing which i can use to search the text from my code?

  • September 14, 2012
  • Like
  • 1