Commit 46608ba1 authored by Ilya Shulgin's avatar Ilya Shulgin

Пофикшены имена веток

parent ed04fce4
......@@ -15,24 +15,7 @@ class CreateController {
number--;
}
// $scope.contents.push($scope.contents[id]);
// $scope.link.slice(id, 1);
// $scope.contents.pop();
// $scope.contents.slice(id, 1);
// for (let i = 1; i < $scope.contents.length; i++) {
// $scope.contents[i].number = i;
// $scope.contents[i].name = "link" + i;
// }
//
// number = $scope.contents.length;
};
// $scope.contents = [
// {name: "link2", value: value},
// {name: "link3", value: value},
// {name: "link4", value: value},
// {name: "link5", value: value}];
}
}
......
......@@ -13,10 +13,10 @@
</div>
<div class="input-group">
<label for="link1">
<label for="link0">
Ссылки:
</label>
<input type="text" ng-model="link[0]" ng-change="show(0)" name="link1" id="link1" class="form-control" placeholder="Краткое описание вашей новости">
<input type="text" ng-model="link[0]" ng-change="show(0)" name="link0" id="link0" class="form-control" placeholder="Краткое описание вашей новости">
<div ng-repeat="content in contents">
<input type="text" ng-model="link[content.number]" ng-change="show(content.number)" class="form-control" name="{{content.name}}" placeholder="{{content.value}}"/>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment