A Service Portal widget is not rendering on the page, and the browser console shows: 'Uncaught ReferenceError: sp is not defined'. The widget's client script uses 'sp.get()'. What is the cause?
In Service Portal, client controllers must list 'sp' as a dependency to use the sp API.
Why this answer
Option C is correct because 'sp' is the Service Portal client-side API which must be injected via dependency. Option A is incorrect because angular is not needed for sp. Option B is incorrect because widget order on the page does not affect individual widget dependencies.
Option D is incorrect because the server script runs first; the error is client-side.