You need to sign in to do that
Don't have an account?
Ricardo Coutinho 7
Handle Actions with Controllers | Working on App?
Hi,
I just finished the "Handle Actions with Controllers" challenge but i can't get the component to work on the app that we use on this module (harnessApp).
My App:
"Something has gone wrong. [NoErrorObjectAvailable] Aura.loadComponent(): Failed to initialize application. An internal server error has occurred Error ID: 1922741726-25604 (1683235083) . Please try again."
My component:
What am i doing wrong?
I just finished the "Handle Actions with Controllers" challenge but i can't get the component to work on the app that we use on this module (harnessApp).
My App:
<aura:application > <c:campingListItem/> </aura:application>This error appear's
"Something has gone wrong. [NoErrorObjectAvailable] Aura.loadComponent(): Failed to initialize application. An internal server error has occurred Error ID: 1922741726-25604 (1683235083) . Please try again."
My component:
<aura:component > <aura:attribute name="item" type="Camping_Item__c" required="true"/> <p>Name: <ui:outputText value="{!v.item.Name}"/> </p> <p>Price: <ui:outputCurrency value="{!v.item.Price__c}"/> </p> <p>Quantity: <ui:outputNumber value="{!v.item.Quantity__c}"/> </p> <p>Status: <ui:outputCheckbox value="{!v.item.Packed__c}"/> </p> <ui:button label="Packed!" press="{!c.packItem}"/> </aura:component>My controller:
({ packItem: function(component, event, helper) { var a = component.get("v.item",true); a.Packed__c = true; component.set("v.item",a); var btnClicked = event.getSource(); btnClicked.set("v.disabled",true); } })
What am i doing wrong?