function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yang WangYang Wang 

Lightning component doesn't work in Summer16 due to LockerService

Hi guys,
My lightning component does not work in a pre-release sandbox with LockerService enabled.
Are there anyone face the same issue. Could you please share your solution or advice on how to resolve this issue.

Many thanks
Regards,
Yang
Gonzalo Huerta CánepaGonzalo Huerta Cánepa
If you activated the locker service then you need to add the attribute tags for each visual variable that you use (v.*) and add the access attribute set to public or private. For example, in my component, I did:
 
<aura:attribute name="myAttribute" type="Object" access="public" />

Set the type accordingly