-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working XLIFF parsing and displaying segments in editor
- Loading branch information
1 parent
7ae1cd8
commit fea8776
Showing
4 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
// Holds all of the translation pairs and handles the interface with the Document service | ||
define(['controllers/controllers'], function(controllers) { | ||
|
||
controllers.controller('ContentAreaCtrl', ['$scope', 'Document', function($scope, Document) { | ||
$scope.segments = Document.segments; | ||
$scope.$watch(function() { | ||
return Document.segments.length; | ||
}, | ||
function() { | ||
$scope.segments = Document.segments; | ||
//$scope.$apply(); | ||
}); | ||
|
||
}]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters