Search Posts

Checkbox color to be changed and checked in Angularjs Data table

how to Checkbox color to be changed and checked in Angularjs Data table I am using angular material data table. I have an issue in the check box in data table. Here is my data table <md-table-container> <table md-table md-row-select=”options.rowSelection” multiple=”{{options.multiSelect}}” ng-model=”selectedItemsToCreate” md-progress=”promise” animate-sort-icon=”true”> <thead ng-if=”!options.decapitate” md-head md-order=”query.order”> <tr md-row class=”md-row-height”> <th md-column md-order-by=”BDSparePartNumber”><span>Part #</span></th> <th md-column md-order-by=”BDSPCondition”><span>Part Condition</span></th> <th md-column md-order-by=”BDSPSerialNumber”><span>Part Serial #</span></th> <th md-column md-numeric><span>Line #</span></th> <th md-column md-numeric><span>Part Quantity</span></th> <th md-column md-order-by=”BDID” […]

Angularjs1 Promises

how to Angularjs1 Promises Hello guys i use angular js 1.3.0 john papa style, i have two promises… how i can execute second promise if the first promise return me true, anyone can help ? this is my code : function signup() { var promises = [updateProfile(vm.user), checkCaptcha( vm.captchaData)]; return dataservice.ready(promises).then(function () { // there call promise in dataservice }) } i need to call updateProfile if checkCaptcha == true .. I’v made like this […]

Can we handle browser close event instead of ‘beforeunload’?

how to Can we handle browser close event instead of ‘beforeunload’? how to handle browser close event? I tried using ‘beforeunload’ event which is also firing on page refresh, any solution? window.onbeforeunload = function (event) { var message = ‘Important: Please click on ‘Save’ button to leave this page.’; if (typeof event == ‘undefined’) { event = window.event; } if (event) { event.returnValue = message; } return message; }; Source: AngularJS

How to run a postinstall script when publishing angular4 app to azure website using kuduscript?

how to How to run a postinstall script when publishing angular4 app to azure website using kuduscript? I have an angular4 app that is deployed to azure web app (website) by configuring Deployment Options via Portal. I used kuduscript to create custom deployment script [kuduscript -y –node] and then edited deploy.cmd to tell azure how to run angular app. Dependencies were adjusted in package.json. The prod build [ng build –prod] runs fine locally, but creates […]

Inject script into angularjs application

how to Inject script into angularjs application I need to inject third party script into angularjs application. Here is the sample code to inject. (function(a,b,c,d){ a=’//scriptURL’;b=document;c=’script’; d=b.createElement(c);d.src=a;d.type=’text/java’+c; d.async=true;a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);})(); Normally we can inject this code inside body with <script> tag. But i don’t want to inject the file directly into html file. I need to inject the script using angularjs. Someone suggest me a solution to achieve this. Thanks in Advance Source: AngularJS

Disable ion List line element if specific value condition match

how to Disable ion List line element if specific value condition match <ion-col col-9> <ion-list> <!– ng-Disabled=”customer.lsl_job_status==’Completed'” ng-Click=”measurementEntry(customer.lsl_lsh_sys_id , customer.lsl_sys_id ,customer.lsl_comp_code)” –> <ion-item ng-if=”customer.lsl_job_status==’Completed'” (click)=”measurementEntry(customer.lsl_sys_id ,customer.lsl_comp_code)” > <h1>{{customer.lsl_contact_person}}, SC_L: {{customer.lsl_sys_id }}</h1> <h2>Contact No : {{customer.lsl_contact_no}} Company: {{customer.lsl_comp_code}}</h2> </ion-item> </ion-list> </ion-col> How to disable a list element when customer.lsl_job_status is completed. ?? Source: AngularJS

Textarea with ng-model is not submitting when using wysiwyg

how to Textarea with ng-model is not submitting when using wysiwyg I tried to make a form using ng-submit. In the form there’s a textarea that call wysiwyg (it’s trumbowyg). When submit it, all form data are submitted but that textarea. <div ng-controller=’contactCtrl’> <form id=”inquiryForm” ng-submit=”contact()”> <div class=”form-group”> <label>Name</label> <input type=”text” ng-model=”formData.name” name=”name” class=”form-control” required=”” /> </div> <div class=”form-group”> <label>Email</label> <input type=”text” ng-model=”formData.email” name=”email” class=”form-control” required=”” /> </div> <div class=”form-group”> <label>Message</label> <textarea ng-model=”formData.message” name=”message” class=”form-control […]

current tab is crashed if we upload more than 40mb video(base-sixty-four-input) plugin

how to current tab is crashed if we upload more than 40mb video(base-sixty-four-input) plugin I am using naif.base64 (base-sixty-four-input) plugin to upload the videos and convert to base64. I need to upload videos upto 100 MB size, but it’s not allowing me to upload video even with 40MB size <div class=”col-md-5 col-sm-5 col-xs-5″><input type=”file” id=”file-chooser” base-sixty-four-input ng-model=”target_video” accept=”video/mp4″ maxsize=”100000″ class=”col-lg-12″/> </div> Source: AngularJS

Server response type is buffer and return buffer array rather than actual content.

how to Server response type is buffer and return buffer array rather than actual content. I have an angular Js application which is deployed in Node express server.The API service is written in Python.When I am calling the API, the response I am getting is as {type: “Buffer”, data: Array(33)} When I try the same endpoint in Angular 4 and POSTMAN I am getting the correct data.Can anybody help me over here? Is this any […]

Next Page »