+ Start a Discussion
Salesforce User 48Salesforce User 48 

Can't set lightning component controller

I am following the Trailhead "Create a Lightning Component" tutorial and I have reached the part where I have build the controller (Apex) and I am attempting to set the aura:component controller.
My Developer org has a namespace prefix set due to an earlier tutorial and I think it is conflicting. When I try and set the controller:
<aura:component controller="MyContactListController"> </aura:component>
I receive the following error:
Failed to save undefined: No CONTROLLER named apex://devprefix.MyContactListController found: Source
any idea why my controller is not being accessed under the namespace prefix? In case you are wondering I am posting the contents of the apex class below:
public class MyContactListController {
    @AuraEnabled
    public static List<Contact> getContacts() {
          return [Select Id, Name, Email, Title, Phone From Contact];
     }
}
Any help would be appreciated.
Shingo YamazakiShingo Yamazaki
Did you see this?
http://salesforce.stackexchange.com/questions/92847/cant-set-lightning-component-controller

Though I couldn't reproduce the error, it says that after renaming the apex controller class and get it back, the error was resolved.