Questions tagged [angular-template]

Use this tag for Angular questions which are related to templates topics, such as interpolation ({{...}}), template expressions, template statements, data-binding...

The Angular application manages what the user sees and can do, achieving this through the interaction of a component class instance (the component) and its user-facing template.

In Angular, the component plays the part of the controller/viewmodel, and the template represents the view.

To find more information :

674 questions
-1
votes
2 answers

Better *ngIf chaining and `0` value detection?

We build a dashboard-like interface and frequently receive generic objects with optional fields, such as the event object below. event may not be defined at the time the template is loaded, and it may or may not have a daysRemaining ?: number…
msanford
  • 11,803
  • 11
  • 66
  • 93
-1
votes
1 answer

When i Delete Home Component :An unhandled exception occurred while processing the request

i using this template for using angular 2 and asp core in visual studio 2015 . Template i Deleted Fetch Data and Counter Component,it not Problem and it's Work Fine , But When i Delete Home Component it show Me This Error : An unhandled exception…
-1
votes
1 answer

Angular 2 - Cannot read property '0' of undefined error

I retrieve my JSON file from this URL [http://www.bcetupes.info/wp-json/wp/v2/posts?page=1&_embed] In my template, I have this code

{{news._embedded["wp:featuredmedia"][0]['id']}}

The problem is that…
kazou
  • 77
  • 2
  • 11
-1
votes
2 answers

Why does adding an ng-repeat to my AngularJS template break it?

I have an AngularJS directive whose template file looks like this: path/to/myDirectiveA.template.html: Statement {{MyDirectiveACtrl.a.b}} It works. The output looks like…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
-2
votes
1 answer

Angular varable selector in Template

I feel like what I want to do should be dead simple but here we are... Basically I want to use one of many possible selectors to add one of many components. I could probably use a ng-switch like this
Doopdon
  • 125
  • 2
  • 10
-2
votes
1 answer

In angular, how to add a class using the brackets?

Is it possible to create something like below?

{{ post.content }} Anatoly Weinstein, Founder of Theora

Important line:…
user9144436
-2
votes
4 answers

How to visible button on specific row in table using Angular 5?

I am new to angular. I want to visible button of save and cancel on checkbox change event for that particular row in table. How can I set that. I am using following code : …
Srusti Thakkar
  • 1,835
  • 2
  • 22
  • 52
-2
votes
1 answer

Angular change template element based on the radio button

I have two radio buttons in my template. on selecting a button, different input text fields should be displayed for each button and the other fields should hide. How can I do this using Angular? I have tried using *ngIf and ngModel, but not able to…
-2
votes
1 answer

Conditional using of CSS framework in Angular 4

I try to integrate a specific CSS framework (material-design) for my Admin module and another one CSS Framework for my User module in the same project application. If it's possible how can I do.
-2
votes
2 answers

angular 2 inline if/esle with click

simply I want to run a function on click only when certain condition exists , I don't need to add extra function in component ts file to check for the condition , I need to do it inline, like
Arash
  • 3,458
  • 7
  • 32
  • 50
-2
votes
1 answer

Angular nested loop

i pull data from my mysql database with angular http and have a last field that contains data which is separated by a ";" but its only a string. Now i want to have a single html element for each of this values. But on top of that i want that for…
Henry Sachs
  • 192
  • 18
-2
votes
1 answer

Angular - *ngFor not showing data

I am following the angular.io tutorial on creating a single paged application. From my understanding<[tag] *ngFor="let [localVariableName] of [arrayName]"> You should then be able to use localVariableName to access the type's member variables. It's…
fOrceez
  • 71
  • 8
-3
votes
1 answer

How do I display a photo of an authorized user?

How do I display a photo of an authorized user? Tried to do so:
Nonsense
  • 250
  • 2
  • 7
  • 15
-3
votes
1 answer

How to update view in Angular?

I have this input And this.name = 'Adam'; When I get a new name from the back end and set the value with this.name = res.data, input value on page doesn't change. Why?
Ignat
  • 3,727
  • 6
  • 16
  • 17
1 2 3
44
45