Posts

Showing posts with the label AuraAttributes

AuraAttributes

Binding attribute in Application <aura:application   extends = "force:slds" >      <aura:attribute   name = "value"   type = "String"   default = "World" />     Hello {!v.value}! </aura:application> O/p Hello  World ! Hello World example sending value from js to server as param and getting output. Apex public  with sharing  class   helloWorldwithParam  {      @AuraEnabled      public   static   String   serverEcho ( String   firstName ) {          return  ( 'Hello from the server, '  +  firstName );     } } Application <!-- Adding classname of apexclass -->  <aura:application controller="helloWorldwithParam" extends="force:slds">     <aura:attribute name="firstName" type="String" default="...