Category "angular"

ngx-build-plus:externals not working for Angular 13

As Angular 13 is not producing UMD-Bundles any longer the command ng g ngx-build-plus:externals --project MY_PROJECT currently creates an invalid angular.json (

how to send jwt token correctly

In my angular application I am trying to send a jwt token as a header in order to authorize my app for requests. But I am getting an error 500 because I am send

Angular observable and subscription

i have one observable function in my service which i have subscribe but i am getting [object Object] instead of token value service code: get bearerToken(): Obs

Is there an Angular version of the React-flip-move library?

I didn't find any equivalent in order to animate flexbox, in particular when elements are wrapped and jump to the next line. Thank you

Button was not aligned properly in firefox

app.component.html: <div class="input-group col-12 d-flex align-items-baseline pb-3"> <p class="mb-0 pb-3 col-12">Check....</p> <inp

Angular component is not a known element

I have recently upgraded my angular project from angular 8 to angular 9, when I try to run serve command I am getting below error. error NG8001: 'app-abcd-bread

Error on building app using Ngx-extended-pdf-viewer

Just started angular and I am trying to use a PDF Viewer integrated into my application. I saw ngx-extended-pdf-viewer while browsing which library to use and t

Jasmine unit test Angular service with nested spies

I´m trying to test this Angular service which uses af.firestore.collection, not just af.collection, as shown below, so to be able to access the onSnapshot

couldn't find file 'owl.theme.default' with type 'text/css' error in rails 5.1.4

im getting the below error. Sprockets::FileNotFound at / couldn't find file 'owl.theme.default' with type 'text/css' Checked in these paths: /home/xyz/abc/pr

How to Capitalize the First Letter of the Kendo-DatePicker format in Angular?

I have a kendo-datepicker and it's always displaying the format in the field like following. But I want to customize this as Month/Day/Year. Capitalize the fir

Getting Values from Angluar Page

I want to get Information from Input Field and post them as http. I found a way, but would be like to hear if there is a better one because it seems to be ugly

File upload Angular 13 Spring boot rest Required request part 'file' is not present

I'm searching since days now for a solution and can not find any. I have a simple Spring Boot Rest application (Spring version 2.6.7) with an endpoint to upload

jasmine window.location.reload in ngOnDestroy

public ngOnDestroy(): void { window.location.reload(); } How can I unit test this? All answers I found didn't work or only worked when the test was the only on

WebSocket from HTTPS website to different port, self-signed certificate

I am facing issues when trying to connect from a browser via WebSocket to a server. Website is hosted on a default port (80, 443, configurable - this is s selfh

Merge my initial state with data from API

I don't understand why my state data was not merged with my initial state In my initial state i have: data: {role: null, lastUrl: null}, When my call api is ove

Passing Angular component to another one

I know this has been asked before but I don't understand those answer to be honest. I want to make something simple: Basically I have this: <div class="carou

Error when installing ng add @ng-bootstrap/ng-bootstrap

There comes an error when installing ng-bootstrap to my Angular-CLI(11.0.4). When ng add @ng-bootstrap/ng-bootstrap And my log file [error] Error: npm ERR! co

ERROR Error: NG0201: No provider for NgControl found in NodeInjector

i ran completly out of ideas. I want to user Reactive Forms Module, so i imported it in app.module.ts like import { ReactiveFormsModule } from '@angular/forms';

Openlayers map in Angular is blank when switching components

I have a MapComponent which loads an OpenLayers Map. This component is re-used in various of my Angular app's pages. The map loads fine the first time. However,

Angular Jasmine testing - substring remove from number

I have some difficulties in unit testing a function. I'm new in these things and I don't know what I can do. I have to those 2 if. Any advice? Thank you.