function LanguageCtrl($scope) { $scope.words = JSON.parse('{}'); $scope.addWord = function (Name, Value) { $scope.words[Name] = Value; }; $scope.getWord = function ...
AngularJS nuskaito html šabloną ir sukuria kontekstą(angl. scope) su šablone nurodytais properčiais. Duomenų įvedimo elementams uždedami įvykiai, kurie automatiškai keičia kontekstą. Priklausomybių ...