svg.selectAll("text")
.data(data)
.enter()
.append("text")
.text(function(data){return data.days;})
.attr("text-anchor", "middle")
.attr("x", function(data, i) {
return x(data.days);
})
.attr("y", function(d) {
return h - (data.days * 4) + 14;
})
.attr("font-family", "sans-serif")
.attr("font-size", "11px")
.attr("fill", "green");
<div class="spine-widget" data-background-color="#00000000" data-json="skeleton.json" data-atlas="skeleton.atlas" data-scale="0.5" data-animation="animation" style="height: 300px; width: 300px; "></div>
function findCarInLot (car) {
for (var i = 0 ; i < lot.length ; i ++) {
if ( car === lot[i] ) {
return i ;
}
}
return - 1 ;
}
<style>.font { font-family: {{$ctrl.font}};}</style>
<link rel="stylesheet" href="/css/vendor.css"> // size +100500kb
<link rel="stylesheet" href="/css/init.css"> // size 5kb
<link rel="stylesheet" href="/css/main.css"> // size 500kb
bindings: {
item: '<'
},
const ctrl = this;
this.$onInit = function() {
console.log(ctrl.item);
};
<ul class="list-group">
<li ng-repeat="info in $ctrl.curMarks" class="list-group-item">
<span>{{info.worker}}</span>
<span class="badge">
{{info.mark}}
</span>
</li>
</ul>
function MyCtrl() {
var vm = this;
vm.curMarks = null;
function changeTask() {
task = [{worker: 'Sergey', mark: '@Neversmille'}];
vm.curMarks = getTaskVotesModalInfo(task);
}
function init() {
vm.curMarks = getTaskVotesModalInfo(task);
}
init();
}
<div class="office-block" ng-if="isShow">
</div>
myApp.controller("homeCtrl", function($scope, $location){
$scope.isShow = false;
$scope.saveOffice = function (office) {
$scope.clientsInfo = office;
if (office != ""){
// код который будет изменять ng-if
$scope.isShow = !$scope.isShow;
};
};
});