How to properly add the base url both in environment.prod.ts and environment.ts (Angular)?

This question is related to a full stack spring boot + angular application. Spring boot: I have the following URL in my getMapping method: http://localhost:8000/conversion Angular service: I have the following method to consume the spring boot services: retrieveAllRates(){ return this.http.get<RatesList[]>(`${URL_PATH}/conversion`); } In my environment.ts file I have: export const environment = { production: false, […]

By learner
Published
Categorized as angular, spring-boot, vps Tagged , ,

How to connect Angular front end to spring boot backend once application is deployed in VPS server?

I created a spring boot REST API which services are consumed by an angular front end. Everything works fine until I deploy the application in the filemanager of a VPS server. I can see that the problem is that once deployed the angular front end is no longer able to to consume the spring boot […]

By learner
Published
Categorized as angular, spring-boot, vps Tagged , ,

How to fix net::ERR_CONNECTION_REFUSED?

I created a full stack website (Spring boot rest API + Angular front end) and uploaded my angular files along with the spring boot jar file into filemanager. I started the jar file from ssh terminal and it started successfully, however when I go to the website and navigate to the page where I make […]

By learner
Published
Categorized as angular, spring-boot, vps Tagged , ,

Gallery Filtering using Jquery in Angular not working

I am unable to call the jquery function from my angular html file. Basically, trying to apply filter on the gallery. When the cursor moves hovers over the another button it should display photos of those filter alone, however currently only ‘All’ photos are getting displayed and filtering isnt working. I have installed jquery and […]

By learner
Published
Categorized as angular, gallery, jquery Tagged , ,

Need to apply Search button filter using angularJS & JS

I have one search box .if i am trying to search order No: A_123456 it is giving result but if we are searching 123456(removed A_ prefix) only it is not giving result .What i want this search box to do is. it should give result in both the cases ( A_123456 & 123456 ).PFB attached […]

By learner
Published
Categorized as angularjs, filter, frontend, html, javascript Tagged , , , ,

Azure Dev Ops Query Generator in Asp.net Core Project

I am trying to develop an adhoc query generator similar to Queries section in Azure Dev Ops, see image below. The Field drop down in the image above shows all possible fields. The Value drop down shows acceptable values for the selected field. It can be shown in two images below, the Value drop down […]

load Salesforce icon from angular

I’m working on angular with salesforce, to connect I’m using lightning.out.js library. In the angular app, we are showing one salesforce component and we are loading icons from the angular side which store in _slds/icon directory at the root level. it’s working fine but when I change the directory of angular lightning. out keep looking […]

Angular Authenication with existing service

I am starting with a new application in my company. This needs to LDAP authenticated but the way to access this is through a service we already have where we post the post request with username and password and the service would respond with true or false. How this can be used at angular? Source: […]

By learner
Published
Categorized as angular Tagged

Angular unit testing ,"You need to include some adapter that implements __karma__.start method!"

I am installing karma for my project,I did the following things but when I run ‘npm run test-karma’, then I got the following error, “You need to include some adapter that implements karma.start method!” Package.json, “jasmine”: “^3.3.1”, “jasmine-core”: “^3.1.0”, “jasmine-spec-reporter”: “~4.2.1”, “karma”: “~4.0.0”, “karma-chrome-launcher”: “~2.2.0”, “karma-coverage-istanbul-reporter”: “~2.0.1”, “karma-jasmine”: “~1.1.2”, Karma.conf.js, const { join } = […]

By learner
Published
Categorized as angular-unit-test, angularjs, jasmine, javascript, karma-runner

How to pass data to a child component from parent component when the child component is being called through router-outlet?

I am a beginner. I could not find any way. I tried using Behavior subject which I created in a service that I created. The behaviorSubject gets its next value from the parent component (this.service.behaviorsub.next(value to pass to child)) The service.behaviorsub is then called in the child component, where I used subscribe to get the […]

By learner
Published
Categorized as angular, router-outlet

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq