mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 23:53:49 +00:00
[Pages] Add comments
Add comments to controller for Page objects in preparation for integration, WTD-1158.
This commit is contained in:
@ -5,8 +5,15 @@ define(
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Controller for embedded web pages; serves simply as a
|
||||
* wrapper for `$sce` to mark pages as trusted.
|
||||
*/
|
||||
function EmbeddedPageController($sce) {
|
||||
return {
|
||||
/**
|
||||
* Alias of `$sce.trustAsResourceUrl`.
|
||||
*/
|
||||
trust: function (url) {
|
||||
return $sce.trustAsResourceUrl(url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user