Skip to main content
Amy Oplinger 님이 #Trailhead에 질문했습니다
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개
  1. 2016년 1월 19일 오후 6: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