Skip to content

Commit 7ce1eab

Browse files
committed
Merge pull request connamara#11 from ryoung/master
add js controller for why trade futures portlet
2 parents f0da5a2 + 85343a7 commit 7ce1eab

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
angular.module('browsercms.controllers').controller('WhyTradeFuturesPortletController', ['$scope', function($scope) {
2+
$scope.items = [];
3+
4+
$scope.init = function(items)
5+
{
6+
$scope.items = items;
7+
};
8+
9+
$scope.addNewSlide = function()
10+
{
11+
$scope.items.push({number: $scope.items.length+1, text: ''});
12+
};
13+
14+
$scope.removeSlide = function(index)
15+
{
16+
$scope.items.splice(index, 1);
17+
}
18+
}]);

0 commit comments

Comments
 (0)