Ready to show/hide screen, but still needs to create an isolated scope.

This commit is contained in:
Gunther Brunner
2014-02-19 23:26:06 +09:00
parent 4a9fcc6987
commit 168590a1b7
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ module.exports = function DeviceScreenDirective($document, ScalingService, $root
}
})
scope.$watch('showView', function (val) {
scope.$watch('showScreen', function (val) {
if (val) {
loadScreen();
} else {
@@ -70,7 +70,7 @@ module.exports = function DeviceScreenDirective($document, ScalingService, $root
}
loader.onload = function () {
if (scope.canView && scope.showView) {
if (scope.canView && scope.showScreen) {
// Sets the size only if updated
if (cached.displayWidth !== displayWidth ||
cached.displayHeight !== displayHeight ||