Skip to content

Commit

Permalink
Тест ангулара
Browse files Browse the repository at this point in the history
  • Loading branch information
avvero committed Jan 24, 2014
1 parent 0d6b94f commit 68d1997
Show file tree
Hide file tree
Showing 3 changed files with 9,864 additions and 0 deletions.
18 changes: 18 additions & 0 deletions web-app/test/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var flowModule = angular.module("flow", [])
flowModule.controller("flowController",
function($scope) {
$scope.selected = {}
// События
$scope.items = [
{id: 1, name: "file1"},
{id: 2, name: "file2"},
{id: 3, name: "file3"}
];
$scope.upload = function () {
$scope.items.push({id: 1, name: "file1"});
}
$scope.select = function (obj, $event) {
$scope.selected = obj
}
}
);
Loading

0 comments on commit 68d1997

Please sign in to comment.