Answer the question
In order to leave comments, you need to log in
AngularJS or browser cache template?
I use this code:
app.controller('MakeOrders', ['$scope', '$compile', function($scope, $compile) {
$scope.showOrder = function(id){
$('.col-lg-3').css('width','30%');
var title_id = '00000'.substr(0,5-id.toString().length)+id;
$('.arrow-back').show();
$('.panel-header h1').text('Заказ №'+title_id);
$('.col-lg-3').addClass('click').attr('onclick','Orders.backHome();');
$('.panel-search-box,.panel-content').hide();
var compiledeHTML = $compile("<div order-Info></div>")($scope);
$(".panel-content").after(compiledeHTML);
}
}]);
app.directive('orderInfo', function() {
return {
templateUrl: '/res/admin/order-info.html'
};
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question