Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
2k views

I have been trying and experimenting with a load of different approaches, but I cannot seem to get it working that my template gets updated. Currently the situation: I have an Angular 19 app, ...
donald23's user avatar
1 vote
1 answer
40 views

Here's my app.component.ts file : import { Component } from '@angular/core'; @Component({ selector: 'app-root', standalone: false, templateUrl: './app.component.html', styleUrls: ['./app....
yeh's user avatar
  • 11
1 vote
1 answer
184 views

I recently faced an issue when trying to pass a template through several Angular components. I was not able to pass the template declared in the parent and its context to the child component at last ...
TCH's user avatar
  • 779
0 votes
2 answers
83 views

I'm in the process of upgrading an app from Angular 8.x to 9.x (first step towards upgrading to latest), using ng update. After the update, I'm seeing the following when starting the app: [ng] ERROR ...
David Emami's user avatar
-1 votes
1 answer
136 views

I have a component and im passing a template "exampleTemplate" to this component <standard-form> <ng-template #exampleTemplate></ng-template </standard-form> Inside the ...
testdevtetdev's user avatar
1 vote
0 answers
39 views

I have this code and I want to display speakers whose role is SPEAKER in different section on the same page and those whose role is MODERATOR, and ORGANIZER in different sections on the same page ...
tarus's user avatar
  • 45
4 votes
2 answers
1k views

I'm trying to create a recursive template an ran into a problem. My template: <ng-template #recursiveGroups let-groups> @for (group of groups; track group; let i = $index) { <!-- Some ...
Liran_T's user avatar
  • 113
1 vote
0 answers
68 views

I am working on an application where I need to apply a common directive to set the paginations but it is not working for me. Below is the code Html Code <p-table [value]="...
Kamran Khan's user avatar
  • 1,111
0 votes
1 answer
196 views

we can inject an Angular component dynamically ViewContainerRef.createComponent() where ViewContainerRef refers to a template reference like this <ng-template #ref> how can we achieve the same ...
Sherif eldeeb's user avatar
1 vote
0 answers
154 views

https://dev********.us/assets/images/login/login-bg.png this is the actual url in the production server, in this path the images are not loading. the reason is the base url is not appented with actual ...
Vishnu siju's user avatar
1 vote
1 answer
1k views

I am using Angular 17 for a tiny app and I want to open different components (with forms) in a dialog window. The dialog itself is a wrapper which has two buttons, one of them should call a method of ...
matthiaskurte's user avatar
1 vote
1 answer
432 views

I have an instance of ngb-carousel which is currently used like this: <ngb-carousel> <ng-template ngbSlide>Hello</ng-template> <ng-template ngbSlide>World</ng-...
Impworks's user avatar
  • 2,828
1 vote
2 answers
778 views

I am currently migrating from angular 16 to angular 17. Its a mat-icon to delete an entry from a list in a mat menu with some information text next to it. Before everything was aligned correctly but ...
lef's user avatar
  • 69
0 votes
1 answer
623 views

I have an angular project which is half way through development, I am using SSR with universal (mentioning just in case it matters although it doest not run in dev mode), bootstap and ng-bootstrap on ...
Kravitz's user avatar
  • 2,879
0 votes
1 answer
2k views

I have a string of comma separated values like let options = '1, FIRST,2, SECOND,3, THIRD,4, FOURTH' Requirement: There will be a space after first comma which is next to number. I need to split comma ...
Abhikhya's user avatar
  • 121
0 votes
0 answers
61 views

I am trying to integrate a Html admin theme into new angular project. The pages are loading fine, but the toggle & click actions are not working after integrating into Angular. I am trying to ...
Sricharan's user avatar
  • 101
0 votes
2 answers
825 views

I'd like to render custom component inside mat-option. This is the code in my parent component: <mat-option *ngFor="let option of options" [value]="option.value"> HERE I ...
tylkonachwile's user avatar
0 votes
0 answers
134 views

<ng-template #userInfo> <div id="auth-users-roleinfo-popup" class="authorization-user-info asg-custom-background-color"> <div class="authorization-...
vaishnavi banait's user avatar
1 vote
1 answer
377 views

I have a form using a template driven form and I want to make a radio button selected by default but it doesn't work. This is part of my code: <div class="donut-form-promos"> &...
Abdel's user avatar
  • 63
1 vote
2 answers
3k views

I am modifying an Angular template that is currently using innerHTML to dynamically build HTML fragments into the DOM. In this case, I am creating a mat-table and dynamically building the header. Here ...
Scott B's user avatar
  • 40.5k
0 votes
1 answer
1k views

I have a flag in order to show the data that is using an angular class property, and the value is assigned throug a subscription in observable, but I want to update the approach using async pipe and ...
Tabares's user avatar
  • 4,385
1 vote
1 answer
2k views

I would like to use type checking on angular templates. When a property has 2 or more possible types, the template is not able to determine which is the current type in its context. Even using an &...
Mike5's user avatar
  • 91
1 vote
1 answer
3k views

The ngModel is not working. I'm using it with textbox. app.component.html <input type="text" [value]="name" [ngModel]="name"> Name is: {{name}} app.component.ts ...
Billy's user avatar
  • 905
4 votes
2 answers
5k views

I have the following component for render a list of options. optionsList input gets a list that needs to be rendered with a custom format provided from the item input. list-box.component.html <div *...
Adora González's user avatar
0 votes
0 answers
2k views

Suppose I have an HTML structure like this <ng-template #template1> <div> element one </div> <div> element two </div> <div> ...
Lijin Durairaj's user avatar
1 vote
1 answer
1k views

I have just started with Angular couple of weeks ago. In Vue and React we always use a unique key when we render an array of elements, for a more efficient rendering, specially when the elements and ...
Heisenberg's user avatar
1 vote
2 answers
1k views

I have json: public example=[{ array:[item1, item2,] }, { array:[item1, item2,] }] file html: <div *ngFor="let item of example"> <div *ngIf="...
ngaotruyen's user avatar
2 votes
2 answers
541 views

In my page whenever user clicks on the image . Whatever be on the page should be now shown in the modal. Currently I have copied the same html two times in my angular code . Is there any way we can ...
Trilok Kumar's user avatar
0 votes
1 answer
887 views

I am trying to avoid using formbuilder, i want to use 2 way binding on the data source below is my html, problem is in the p-dropdown, when the component loads I get all the drop down lists but the ...
China Syndrome's user avatar
1 vote
1 answer
201 views

Calling functions inside the template causes infinite calls <div>{{ renderHtml() }}</div> The same behavior depicts inside *ngIf expression While the template has multiple expressions, ...
Sergey Vashchenko's user avatar
2 votes
1 answer
2k views

i have a definition of templates in my angular app: <div class="wrapper" grid [data]="data"> <div class="cell" *cellDef="let cell">{{cell.id}}</...
Draftsman's user avatar
  • 333
0 votes
0 answers
43 views

Error: Property binding ngForOf not used by any directive on an embedded template Error especifically occurs because of the * in ngFor. If I take out the '*' and just put 'ngFor', I get an error '...
purpleunicorn's user avatar
1 vote
1 answer
2k views

I have an app which requires three different types of buttons (a basic button, a form button and a toggle button). Although it would certainly be possible to put everything into the same component (e....
Skimrande's user avatar
  • 856
1 vote
0 answers
732 views

My problem is with Template Driven Forms. I have two components (parent and child) and I want to pass default values for controls inside child component. In child component I have reference to the ...
Piotr Sternik's user avatar
0 votes
2 answers
313 views

I want to create a reusable component with @Input() close = false and in the parent <my-reusable-component close></my-reusable-component>. Like material button with <button mat-button ...
Alan Choufa's user avatar
0 votes
2 answers
852 views

What I want to achieve is that when I write inside input field "Foo" it will become {{Foo}}
brb's user avatar
  • 17
1 vote
1 answer
749 views

is it possible to use the countRitiri output property inside its parent <mat-tab> without to call a function in the current component updateCountRitiri that updates the variable countRitiri ...
pinale's user avatar
  • 2,254
1 vote
1 answer
211 views

I have a form where are sub categories and save button calls mat-error correctly for all the fields in all categories in once correctly if nothing entered. But I also have add button for each category ...
Shubham Shaw's user avatar
5 votes
1 answer
893 views

I'm trying to create a reusable mat table component with pagination, sorting and search. the reusable component that I made displays some simple columns , and projects some custom columns depending on ...
Achraf's user avatar
  • 51
0 votes
1 answer
2k views

My app has many Fees. All Fees share the same attributes except a few here and there. Say I have this structure: // Base Fee interface IFee { id: string; name: string; price: string; ...
amcardwell's user avatar
5 votes
1 answer
3k views

My purpose is use the enum to read a array's property. This code gives me error: <ng-container *ngFor="let elem of list"> <div class="ui-g-12 ui-sm-12 ui-md-12 ui-lg-12 ui-...
poopp's user avatar
  • 1,497
2 votes
1 answer
2k views

Right now I am creating a library (my-custom-library) and a project in which we'll use that library (called my-Project) The requirement is, that within my-project I have to use my-custom-library, ...
sommma200's user avatar
1 vote
1 answer
2k views

Context :-Small Angular Application(only two tabs on single screen) deployed independently as static assets in AWS S3 bucket. Given :- One of my Angular(12) container Component have long markup, but ...
Niteesh Bhargava's user avatar
1 vote
1 answer
2k views

I have an existing Angular app which eager-loads everything, and I would now like to add lazy-loading capabilities to it. Lazy-loading routes works fine, especially by following the guidelines ...
bfredo123's user avatar
  • 592
0 votes
0 answers
440 views

I was working on a app where I encountered a peculiar case. For simplicity I have created a sample app and tested this although the behaviour was same. Sample app: In the parent component(my-app) I ...
Jason's user avatar
  • 334
0 votes
3 answers
8k views

I have this floating button in my Angular Application, <button [ngClass]="{ 'mdc-fab--extended': extendedClass, 'mdc-fab--mini': miniClass }" class="mdc-fab mdc-fab--touch &...
julz oh's user avatar
  • 345
0 votes
1 answer
79 views

I am upgrading my Angular-2 project to Angular-12 project and when I changed : Before import { Http, Response, Headers } from '@angular/http'; After import { HttpClient, HttpResponse, HttpHeaders } ...
Usama Attique's user avatar
0 votes
1 answer
2k views

I am learning Angular 2 and am currently blocked by the following error. The variable posts is declared in post.component.ts. Error: src/app/book.component.html:231:33 - error TS2339: Property 'posts' ...
Lee Z's user avatar
  • 984
2 votes
0 answers
238 views

I suspect this question has already been answered, but all answers I can find are about child components, not child types. I have two interfaces. (edit to clarify: I do have more items that inherit ...
Erian's user avatar
  • 25
2 votes
1 answer
3k views

I need to be able to pass a dynamic string using the fieldName in order to get an attribute within the item object. In order to make it easy to duplicate the issue I have given a small example. The ...
Dilshan Liyanage's user avatar

1
2 3 4 5
58