Category "angularjs"

grid.dataItem(row) is returning undefined

Using a kendo data grid, i am adding the model value in the databound event for a column However the model is returned as undefined , here is teh code ,

How to read laravel_session cookies saved in cookie memory of browser in client side?

I have an laravel and angular based application, I would like to read cookies from client to server side, But i can't read it. So can any one tell me how could

How to implement a client_credentials grant type in an angular http request?

I've created an OAUTH2 authorization server which uses client credentials for authentication and is responsible for the issuing of JWT tokens. When I place my

angularjs-google-maps Info window position

I work with angularjs-google-maps and I used this example for my application. In the controller at vm.shops if I change the: vm.shops = [ {id:'1', name: 'F

Communicate two views with one controller in AngularJS

I'm using UI-Router for Angular and I have separated views for my app: sidebar and main. Now i need to change some class in main view after some action that doe

Can't run an Angular 2 Component inside an Angular 1 component in Visual Code

My Index.html is <!doctype html> <html> <head></head> <body> <script src="node_modules/core-js/client/shim.min.js">&

How can I load value on input date with angular?

I'm programming with Angular 1.5.5 and I'm using Materialize CSS 0.97.6. On my controller, I have $scope.myDate = '2017-01-13T02:06:40' In the HTML file, I have

Change the background color of a div in angular

I would like to change the bg colour of div when clicked on that particular div. The div is placed in a slider panel. For example, if I click Home, the slider g

How to parse a string to array in js

I have an a string like the following, var x = "[{"k":"1"}]"; console.log(x[0].K); I ant hange this string sine I am getting from the server.Its out of my co

Execute a function after angular foreach

I'm trying to do that after the foreach angle, perform a function to save on server images on the bench. But problem is that the function is executed before fin

Handle null with localecompare typescript

I have the following sort: let sortedCon = this.con.sort((a, b) => a.lastname.localeCompare(b.lastname)); I am trying to get it to handle nulls and mainta

Using lodash push to an array only if value doesn't exist?

I'm trying to make an array that if a value doesn't exist then it is added but however if the value is there I would like to remove that value from the array as

How to set X-Frame-Options header in angularjs?

I'm getting an OWASP ZAP Scanning alert: Medium (Medium) X-Frame-Options Header Not Set Description X-Frame-Options header is not included in the HTT

select dropdownlist item using cypress

I need to test a dropdown on angularjs application using cypress. I would need to click on a dropdown and select or click an item from the dropdownlist. I trie

Firebase TIMESTAMP to date and Time

I am using firebase for my chat application. In chat object I am adding time stamp using Firebase.ServerValue.TIMESTAMP method. I need to show the message rece

Download file from API using javascript

I need to force download of file using JavaScript. I am using Angular and restangular to communicate with API. I am now working on file download action from API

Jenkins error - Blocked script execution in <URL>. because the document's frame is sandboxed and the 'allow-scripts' permission is not set

I'm aware that if we use a iFrame in HTML we've to sandbox it & add the 'allow-scripts' permission to be true. But my problem is I don't have a iFrame at al

Create OTP form. input field to be appear as separate input fields on screen

I want design something like in the Image, where a 6 digit one time password (OTP) is to be entered by user. Right now I have achieved this by 6 separate inputs

best way to format ngModel for input type date

I know input[date] require date type from JSON, then I format ngModel value with new Date(json.date) , it's works 2015-11-15 become Mon Nov 15 2015 02:00:00 GMT

Is it possible to make an md-button smaller?

I want my buttons showing left- and right arrow and NOW text to be as small as possible. How do I do that? <div ng-controller="DateCtrl" layout="row" flex&g