angular2

Why doesn't Angular innerHTML output the code in the frame and not all the markup elements?

I put this code where the value contains the text of the entire page with frames, videos, photos, text. Only the text with st ... ]['rendered']"></div> Is it something to do with security? How do I make everything display "as it is in the code"?

Always in the gallery the last post after the loop in html | Angular 8 | @ngx-gallery/core

There is a list of posts that are successfully loaded from the database when the page loads. Each post has its own array of p ... ll loads the photos from the last post to view in full mode. I get the gallery from the last post. What am I doing wrong?

How do I add a frame for a webcam in the hangar?

In my project, I use ngx-webcam to allow the user to take a photo of themselves. How can I add a container with markers so that the user can understand how the photo will be taken (see the center and edges)? Is it possible to do this with css?

Example of MVC and MVVC in Angular2+

Good day to all, I read a dozen articles and so, and did not understand what is the difference between these 2 templates and ... interface. I want a clear answer, what applies to what in MVVM, what is what in MVC and how to understand when, what to use.

Property error 'then' does not exist on type 'Observable '

I make a service with my own logic, but the error Property error occurs 'then' does not exist on type 'Observable'. Service ... arams.get('id')) .subscribe(user => this.user = user)); } goBack(): void { this.location.back(); } }

How to transfer data between components in angular 2

From the child to the parent, I know through EventEmitter, but if I have many deeply nested components, how do I do it?

Empty page when accessing the Angular API

Accessing the local Web Api at http://localhost:50806/api/Users. It returns: [ {"UserId":1,"Name":"O. Cole"}, {"Us ... rModule, FormsModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModule { }

Angular 2 and Typescript Inheritance

There are two components in which there are two identical functions. Based on the principles of OOP, it is most logical to pu ... how to design and in which folder to put the new class and, in general, is a similar approach used with respect to Angular?

Connecting fonts in Sass

I have a problem. I have connected all the fonts in fonts.sass (located in the root of the folder app) but they are not visib ... .ts 22:21-55 @ ./src/app/app.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://0.0.0.0:0 ./src/main.ts

Angular 2 material missing values from inputs in *ngFor

<div *ngFor="let item of products.product.parameters"> <div class="row"> <div class="inpu ... ywhere. Tried below via <span> output data - everything is ok, it disappears from <input>. How to deal with this?

How do I set the default value in a form field in Angular 2+?

Hello, I make fields for editing an object in angular, I ran into a problem when the fields already passed to value are not p ... placeholder="Контент" value="{{ content?.body }}"/> <input type="submit" value="Редактировать"/> </form>

Angular 2 unused Class

I analyze the examples on the documentation site https://angular.io/docs/ts/latest/guide/user-input.html And I can't connect ... ed. Also in main.ts added import { ClickMeComponent } from './click-me.component'; and this line also glows as not active.

Looking for documentation on Angular 2 JavaScript

I'm looking for documentation on Angular 2 JavaScript (not TypeScript). Does anyone have such a resource at hand? Please share it.

Where to find a website angular.io translated into Russian?

I am interested in detailed documentation on Angular 4 (namely v2+ and not AngularJS) in Russian. Not another author's lessons, but just like on angular.io but on the great and mighty. I will be very grateful, thank you in advance!

How can I add a hover tag in Angular?

Let's say I have a list generated via ngFor and need to add a class to it when hovering over an object, and then delete it after removing the cursor. How can this be done?

How do I pass an object to Angular with the @ Output() decorator?

The object transfer is registered in this file, but the code does not work correctly, "[object Object] " is output, how can I ... r: string, bot: string) { if (user == null) { return; } this.message.push(new Messages(user, bot)); } }

Invalid input when copying values to it

For the input in the reactive form, there is a simple validator for checking the phone (in the screenshot). If you enter the ... f you delete one character and then re-add or re-copy the entire number to the input, everything returns to the valid state