[Pages] Add comments

Add comments to controller for Page objects in preparation
for integration, WTD-1158.
This commit is contained in:
Victor Woeltjen
2015-04-29 15:04:59 -07:00
parent b2cd74e629
commit 2cba0234c5
2 changed files with 8 additions and 1 deletions

View File

@ -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);
}