Search Posts

push notifications stop working, where should I start looking?

how to push notifications stop working, where should I start looking? basically, this the context, I have to fix a push notifications problem since the app is not sending notifications to its users anymore, this app was developed by other guy that didn’t even commented its code and now I’m on charge to fix this. As far as know, he used the following technologies for this project. Ionic v1 for the frontend (app) Triangular (kind […]

Laravel + AngularJS – oauth 2.0

how to Laravel + AngularJS – oauth 2.0 I work on a project which uses Laravel and AngularJS. My task is to implement a token based auth system. The guy from back end chose to use passport to implement oauth 2.0 and everything works fine. After login and refresh I save the response (token, refresh_token, expires_in) in localStorage. The idea of the whole system is to check, 1 minute before the token expires, if the […]

Spring controller http post request results with 400 Bad Request

how to Spring controller http post request results with 400 Bad Request I am getting Bad Request for the folowing code : Spring Controller : @RequestMapping(value = “/getAnnotationEntitiesByText/”, method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody Object getAnnotationEntitiesByText(@RequestBody AnnotationRequest text) throws Exception { Collection<AnnotationItem> items = dbpediaSpotlight.annotateText(text.getText()); return items; } Angular http request : $http.post(‘knowledgeBase/api/getAnnotationEntitiesByText/’, {text: $scope.selectedEntity.description}) .then(parseResponse, printError); And my RequestBody class : public class AnnotationRequest { public String text; public […]

How to get an angular form to update after set value from dev console injected code?

how to How to get an angular form to update after set value from dev console injected code? So, I’m looking to automated some functions on a website that is not mine. I’m doing so with injected javascript code in the console so its all client side and several forms need to be triggered. No problem in standard javascript / html forms, but both react and angular apps, this poses a problem. For angular, they […]

How to keep all Autopopulate list values always visible using AngularJS

how to How to keep all Autopopulate list values always visible using AngularJS How to show autopopulate list values always visible even enter non-relevant text in Textbox. Example: if I enter ‘Ora’ in textbox, I’m getting only ‘Orange’ I want to show all values in the list value JsFiddle Please suggest any way to achieve this case. <div data-ng-app=’httpApp’ data-ng-controller=’httpAppCtrlr’> <input list=”values” placeholder=”select”> <datalist id=”values”> <option ng-repeat=”item in items” value=”{{item}}” ></option> </datalist> </div> Source: AngularJS

Inject Custom Component in ionic 3 page

how to Inject Custom Component in ionic 3 page I just created a loading component in ionic so that i can inject it in any page as loading while getting data from server (HTTP req/res). I somehow managed to import it in app.module.ts file (since its my first time). Now i am not able to inject it in my template Following is my custom component ts file @Component({ selector: ‘loader’, templateUrl: ‘loader.html’ }) export class […]

Grunt correspoding Nginx configuration for Angular application

how to Grunt correspoding Nginx configuration for Angular application I have a configuration for Grunt server below livereload: { options: { open: true, middleware: function (connect) { return [ modRewrite([‘^[^.]*$ /index.html [L]’]), connect.static(‘.tmp’), connect().use( ‘/bower_components’, connect.static(‘./bower_components’) ), connect().use( ‘/app/styles’, connect.static(‘./app/styles’) ), connect.static(appConfig.app) ]; } } }, It works perfectly with Grunt development-environment, but now I would like to have the same modRewrite configuration for Nginx also, as I put the app into production. What is […]

Pause and Continue files with Fine Uploader

how to Pause and Continue files with Fine Uploader My configurations. Angular : 1.6, Back end : C#, Fine Uploader 5. my upload is working fine but the new requirement is to upload a whole folder with pause and continue functionality. Initially when folder is dropped, It should be in Pause state, and there must be a upload button for continue. I have tried to complete it with autoUpload: false but it’s also not working. […]

Problems in setting up a basic Ionic/Firebase2 APP

how to Problems in setting up a basic Ionic/Firebase2 APP I am trying to setup the CRUD sample app described in Josh Morony’s blog https://www.joshmorony.com/building-a-crud-ionic-2-application-with-firebase-angularfire/ I am facing two problems which I believe are related to the configuration of my environment and the versions of the various package I have installed. I already tried to clear the cache of nom and then run “npm update”, but nothing has changed. Problem 1. I reached the point […]

AngularJS SPA needs to reload to recognize the jwt token in localstorage

how to AngularJS SPA needs to reload to recognize the jwt token in localstorage everything good ? Today I need your help to solve a token authentication problem (jwt) in my SPA AngularJS application (I use NodeJS in the backend). When I log in, the credentials are validated in the backend and if I succeed I get a token that is stored in localstorage. But when I start making my requests to the protected endpoints […]

Next Page » « Previous Page