返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [angular]

Questions about Angular (not to be confused with AngularJS), the web framework from Google. Use this tag for Angular questions which are not specific to an individual version. For the older AngularJS (1.x) web framework, use the angularjs tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Angular 6 cannot download pdf with greek characters from Django 2.2?

I am using Angular 6 and Django 2.2 and Ι am trying to request a pdf containing greek chars. here is my angular side code: service: getUserGuide() { return this._httpClient.post("association-...
1
vote
0answers
13 views

Access nested json object angular 6

I'm trying to access the nested data from the HTML template, but I get undefined or I get nothing as result (empty page with no class list or student list). The HTML template: <div class="...
1
vote
1answer
14 views

Dynamically adding flip cards in Angular HTMl

I am retrieving a list of items from my database. I want to generate flip cards as many as the number of elements retrieved from the database. Is there a way to dynamically add flip cards with the ...
0
votes
3answers
25 views

function is not executing on li click in angular6?

I am building custom autocomplete like drop down using angular7. I have this html in my component.html <div class="wrapper"> <div class="row mt-3"> <div class="col-6"> &...
0
votes
0answers
22 views

Angular | Typescript | Data Table not Paging/Sorting

I am having some issues with a data table - the background is that I need to make multiple simultaneous API calls through an observable subscription which are then combined into a single data ...
0
votes
0answers
10 views

Localization (internationalization) in Angular 4+ using ngx-translate?

I am doing localization in Angular. I am not sure how to do localization for async observables. Here I do it in for regular html without using async. <p class="pageTwo" [translate]="'users....
0
votes
0answers
4 views

Showing drag and droppable charts in angular Gridster 2 control

I have developed some charts with PrimeNg control. These charts are developed with some fixed Json datasource. Now I want to show this charts in my dashboard. These charts should be drag and droppable ...
0
votes
0answers
13 views

upload a file via Angular form

I'm working in an Angular 9 project, is a CRUD and it's already connect it to a mongo database, everything it's working fine, I'm adding tasks perfectly, but I decided to included an input for upload ...
0
votes
0answers
7 views

Django Angular File Upload with a model

I am referring to the official Django documentation http://docs.djangoproject.com/en/2.2/topics/http/file-uploads/ on Handling uploaded files with a model. However, I need some help. My Angular ...
0
votes
1answer
10 views

Is there a way to save and API stream as .csv without using FileSaver or createObjectURL()

These seem to be the only two existing approaches. the issue with createObjectURL() is that it is deprecated, my current browser, chrome can't even call this method anymore. the issue with ...
-1
votes
2answers
28 views

Angular router autoguard

I'm trying to implement router Autoguard but when I redirect the user to other component the canActivate is not executed. This is the example of my code: LoginComponent.ts public doLogin(): void { ...
0
votes
0answers
10 views

CircleCi randomly disconnects from browser when running Karma specs

I have a large program written in Angularjs and in the middle of a migration to Angular 7 (soon to be 8). We have 9000+ spec's and about 1/4 of them are Angular 7. For a while now, CircleCI would ...
-2
votes
1answer
18 views

Why does ng serve throw error in angular?

I am getting below error when run using ng serve. ERROR in Error: Error encountered resolving symbol values statically. Calling function 'OpaqueToken', function calls are not supported. Consider ...
0
votes
0answers
4 views

Manage i18n in mongo database

I'm currently working on a web project that have the front-end in Angular, the back-end in Python and a mongo database. I'm currently implementing i18n (multi-languages) in our database and I'm ...
0
votes
0answers
5 views

Ionic unCaught FileTransferError

I am trying to open a PDF in my ionic application and from my server I am receiving a status code 200 which means it is successfully receiving the data in order to open the PDF. However, I am ...
-1
votes
1answer
11 views

unable to signin with google in ionic using angular-6-social-login

Unable to sign in with google in ionic app by using angular-6-social-login.it is working fine on browser but in the case of app after give the credentials it shows white blank page.my code is below ...
0
votes
0answers
19 views

ng add @angular/pwa - Cannot read property 'length' of undefined

I'm trying to add PWA capabilities into the Angular 8 project (generated with ng new). ng add @angular/pwa --project projectname Got the error: Installing packages for tooling via npm. + @angular/...
0
votes
1answer
37 views

Angular 8: Why do I receive null when using URL Query Strings?

I am trying to consume the following web-service @POST @Path("/delete") @Produces(MediaType.APPLICATION_JSON) public boolean deletePost(@QueryParam("idPost") String idPost) { // logic here } However,...
0
votes
0answers
35 views

How to get string value from Observable<string>?

I have a pipe that returns an observable of type Observable , and I want to call this pipe from my typescript file. **Pipe.ts** export class Pipe { transform(sometihng$: Observable<SomeType&...
-1
votes
0answers
18 views

How to avoid collision between API calls in a Spring Boot application?

I made a project that uses Angular for front end and Spring boot for the back end service. I do several calls at the same time when I'm switching between tabs in my application, but I frequently get ...
0
votes
0answers
21 views

How to keep spaces in between the words in address field regular expression but need to show error if we give space in the begining and ending

public addressPattern: string = "^([^\s]*[A-Za-z0-9][\s]{0,1})*$"; this is how i written but it allowing the space in the begining and ending also.which i need to show error at that time.
0
votes
1answer
26 views

Passing data from service to modal component in Angular

I'm new in Angular Programming. I'm trying to pass data from service to my modal component, but an empty modal is displayed first, and the data comes later (I can see data in console.log or when I ...
0
votes
0answers
11 views

File Input not binding to formControl in Safari, works in other Browsers Angular Reactive Forms

I have a file input that uploads an image to a files directory and then is set as values in a reactive form, which creates a news article. The file uploads and binds in Chrome, Firefox,(uploads and ...
0
votes
1answer
31 views

Type 'number' is not assignable to type 'TeardownLogic'

I made a service that returns a time Observable, time = new Observable(observer => setInterval(() => observer.next(new Date().toString()), 1000) ); However, it gives the following error, ...
0
votes
0answers
7 views

Can I show twitter/instagram posts in Ckeditor5 without using Embedly and Iframely

In my project I use ckeditor5 to create articles. I want to add twitter, instagram posts in articles, but can not. When I create article and insert , for example, http://twitter.com/ckeditor/status/...
-1
votes
0answers
9 views

How to set decibel in AudioContext - Node.js

I have a work for changing digital sound to -20dB. I am using AudioContext and typescript. It is possible to get decibels, but I didn't find any method for setting it. I hope to know if it is ...
-1
votes
0answers
20 views

Angular 8 - Install local library

Hello fellow angulars, I want to use a local angular library which I generated in an already exisiting angular application. Later I'm going to publish my angular library to a git repo, where the ...
0
votes
2answers
18 views

Disable date in mat datepicker conditionally

I am using angular material datepicker in an angular 7 project. I want to make the datepicker readonly on some condition. eg. if the date is more than the current date I want to make the datepicker ...
-1
votes
1answer
16 views

Angular - Proper way to handle routing modals with query params

I am working on an existing app which has paging/sorting with a table. So let's assume I am on a page where the url is: http://www.brilliantapplication.com/table;sort=name,desc Now I have a button ...
0
votes
1answer
35 views

How to access updated element after changing it using one way binding

I want to update content of a div using string interpolation and then access some properties of that div element immediately. how do i access an updated element? In the below code snippet, how do i ...
0
votes
1answer
31 views

Optimal way to fetch from API with JWT tokens in the header

Please don't downvote just because I am a beginner in Angular. So I'm rewriting my Angular app to instead of having routes (client-side) to fetching HTML templates from the Backend API (Pug, express....
0
votes
2answers
32 views

With Angular HTTP client - How to send POST http object with all attribut `null by default`

My angular component: const p: Product = this.products.find((d) => d === event.item.data); p.name = 'foo'; My angular service is: updateProduct(product: Product): Observable<CommonResult> {...
0
votes
3answers
42 views

How to access data from observables in angular using httpClient?

I'm trying to connect to API with my angular app and I want to create a get function that returns an array. Connecting works fine, but the function doesn't return what I want. Here's code. export ...
0
votes
0answers
15 views

How to get critical datapoints of colormap

I have bar chart.js and I want to give them color from left to right as showed below which is known as Jet Colormap I made research on google and here so I found some sources helped me to apply a ...
1
vote
3answers
36 views

Module based project structure angular

I'm newbie angular developer. I searched many many project structure as a result then I create a module base structure but i'm not sure this approach My created a project structure as below; -src -...
-1
votes
2answers
16 views

How to search data directly form webservice using Nativescript

I have response a JSON like this: { "StatusCode": 0, "StatusMessage": "OK", "StatusDescription": [ { "product_id": "1", "Name": "ALMACINE", "...
1
vote
2answers
27 views

Angular 8 Display image src stored as ng model in variable

I want to display image src as dynamic variable, I declared a default value as string in variable named displayedImage : <div class="col-6 " style="margin-top: 35px;"> <div class="row">...
1
vote
1answer
53 views

Why is all valueChanges triggered simultaneously, when only one formControl is interacted with?

I have 2 form fields, which are date pickers, a simple "to" and "from" form. The problem is that valueChanges in the code below is triggered for both form controls, regardless of which date picker ...
0
votes
1answer
25 views

Footer value for dynamic table - Angular

From JAVA backend API I am getting this response. [ [ { "cardType": null, "cardDescText": "DISC ", "dueToday": "1", "dueTomorrow": "0",...
-1
votes
2answers
47 views

What is the purpose of rxjs observable if it does not react to changes?

I have an array of items and I wrap that in an observable using of. The observable is created before the array is populated. When the array is finally populated, the observable callback passed to ...
0
votes
0answers
6 views

GoogleMaps JS API v3 marker clusterer with diferents conditions depending on map zoom

I want to add a MarkerClusterer to my map that clusters the markers in differents ways depending on the zoom. There are different types of markers in my map (not all the markers represent the same ...
0
votes
1answer
23 views

How to loop the formcontrolname dynamically along with validation

I want to validate the multiple looping of dynamic formControlName="xxx" in select field My html code <ul *ngFor="let detaillist of stressli.stresstabdetails;"> <li> <div ...
0
votes
0answers
26 views

get warning when i send my form with submit button

i get the next warning Error: HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: "http://localhost:3000/enroll", ok: false, …} I change my PORT number to 30009 and ...
1
vote
1answer
51 views

Why if my angular http post return ok, doesn't work subscribe?

i am on angular frontend with a php backend. Why if i do a http post with angular like this: `Register.component.ts createUser(){ this.registers.roles = "user"; this.registers.isnewsletter=...
-1
votes
1answer
49 views

Ineffective mark-compacts near heap limit Allocation Angular 8 - JavaScript heap out of memory

42% building 274/275 modules 1 active ...\src\index.js??extracted!D:\Clients\community.web.v2\node_modules\sass-loader\lib\loader.js??ref--15-3!D:\Clients\Nalaka\dc2vue.community.web.v2\src\styles....
1
vote
1answer
40 views

Reducing an array of object in to one object and group some commom information in to an array

What i mean is that I have an array of object like below, connectionInfo: any = [ { "deviceName": "transponder1", "ports": 4, "rowNo": 1, "columnNo": 1, "posX": 2060....
0
votes
1answer
15 views

Angular UI changes do not work when fired from an iframe event listener

I'm currently working with an Angular 8 application that acts as a UI layer on top of an iframe for showing enhanced information to the user. The Angular application will show different angular ...
0
votes
0answers
28 views

Property 'focus' does not exist on type 'MatTabLink'

I am facing an issue, about which you can read more here. But my question is why is there no focus method on MatTabLink object? The docs describe it has it. Also in the source code of ...
0
votes
1answer
20 views

SwitchMap with DebounceTime

I'm implementing some search and filtering controls with Angular. I've started using RxJs for this. First I had really bad time trying to understand operators like switchMap and exauhstMap, so I ...
0
votes
0answers
22 views

Sharing JWT token between backend (.Net) and frontent (angular)

I have a specific project where I use .Net ASP MVC application with frontent build with Angular 7. By "specific" i mean that angular has routing disabled - routing is handled by MVC backend ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞