Category "angular"

Translate back to english before sending the search parameter using weglot

I am using Weglot in my single-page application (Angular). The following code adds a language switcher in my application on all pages. <script type="text/jav

Do I have to commit node_modules in order to run GitLab .gitlab-ci.yml builds?

Trying to create a .gitlab-ci.yml file to do builds in GitLab. All attempts thus far fail. Few examples I am able to find and those seem to have node_modules sa

How to secure the attachment URL getting from cloud services

I have an angular form where the user is uploading the attachment. On uploading, the attachments are stored in the Azure Storage Account. In return, I am receiv

New url is getting appended with localhost url

Url what i am getting from dynamically from user that i am trying to open in a new tab, its getting open in new tab but the localhost url is getting appended al

Angular 12 .Net 6 value null being passed to api as "null"

I have an angular 12 UI that is communicating with a .net 6 API. When a parameter in a query string is null or undefined the API is interpreting it as a string

How to exclude the folder but include all of its files and sub-folder while npm publish in angular library

When I build my angular library app i get the artifacts in the folder dist/. This means when the library is imported in another application it is done like this

ERROR TypeError: spanEl.getBoundingClientRect is not a function

ERROR TypeError: spanEl.getBoundingClientRect is not a function at _guessBsVersion (C:\Users\sagar h\Desktop\MYRIDZ\falcon-mobikes-website\dist\server\main.

Can't import the named export 'ɵɵngDeclareFactory' from non EcmaScript module in my angular 11 app

In my angular 11 apps, I am trying to install ngx-echats. Unfortunately, I am getting an error when exporting NgxEchartsModule in my app.module.ts. That is the

How to copy the inferred type of an untyped function (TypeScript) in Visual Studio Code when its very long

(See Screenshot) I have this function with a really long untyped object returned, I want to copy the inferred type of that object because it's way too long to

Angular Ngoninit getting called everytime while routing

I have one component Details where the routes for other child components is there. What is happening is that when I route to any other child component then the

Add Custom No Data To Display for ngx-datatable

How can i add a custom no data to display for ngx-datatable. I don't want the no data to display that comes with ngx-datatable. What i tried is below <div *n

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError

I have an error message: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(MarketModule) [IndiceService -> IndiceService -> IndiceSer

Focus a specific mat-option item when mat-select dialog is opened?

I want to focus to an option(scroll to an option) automatically when mat-select is opened. I thought that with a little bit of search this will be solved easily

@angular-architects/module-federation to customize a monolith build

In our company we are trying to implement micro frontend concept using @angular-architects/module-federation plugin. We used very basic configuration, nothing s

Angular Routing with Fragment Hash doesn't work if I click the same anchor twice

I am trying to redirect within the page, using a fragment in an anchor tag. It works fine the first time but when I scroll the page up manually and press the an

Angular Material Datepicker Popup positioned wrong

First of all, this material datepicker is based on: https://stackblitz.com/angular/qmnrlgabjly?file=src%2Fapp%2Fdatepicker-views-selection-example.ts I have cop

Karma tests: Cancelling of Subscription in finalize does not work

I have this scenario: there is a service taking data from BE. Every call of this service (its method) is subscribed and this subscription is saved to Subscripti

Angular. Consuming service from module

I have a project with ConfigService which reads values from config.json Also I use AuthModule from Nebular which configures in module (core.module.ts in my case

owl-carousel-o is showing item vertically

i'm using Angular and i want to show items in normal way (using owl-carousel-o) , but that's how they're shown in the Link that's the app.component.ts code

type undefined error on ng-apexchart for angular

Help me understand this error, please. I am simply trying to create a bar chart for my angular web app using ng-apexchart. I am following this article . I am no