Skip to main content
Trying to verify the first step of 

Quick Start: Lightning ComponentsCreate a Server-side Apex Controller Class and get the following error: Please advise. Thanks!

Create Server-side Apex Controller Class - ERROR please help!
4 Antworten
  1. 19. Jan. 2016, 18:10
    Actually, you need to place that code inside the class. 

    For eg. 

     

    public with sharing class MyContactListController{

    @AuraEnabled

    public static List<contact> getContacts() {

    // Perform isAccessible() checks here

    return [SELECT Id, Name FROM contact];

    }

    }

    Please try to save above class and mark this as answer if it helps you.
0/9000