What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-20 17:03:10
how sent data to dilaog angular material
// app.component.ts import { Component } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MyDialogModalComponent } from './modals/my-dialog-modal/my-dialog-modal.component'; @Component({ selector: 'app-root', templ... Add solution -
TypeScript 2021-11-13 12:48:12
maticons .svg
import { Component } from "@angular/core"; import { MatIconRegistry } from "@angular/material/icon"; import { DomSanitizer } from "@angular/platform-browser"; @Component({ selector: "app-root", templateUrl: &qu... Add solution -
Javascript 2021-11-05 03:07:11
definicion de un componente en angular
// Archivo app.component.ts // Incluir el decorador Componente import { Component } from '@angular/core'; // Especificar los atributos del componente @Component({ selector: 'app-principal', // etiqueta (tag) templateUrl: './app.component.html', // Pla... Add solution -
Other 2021-11-04 07:02:08
perse json in angular
import { Component, OnInit } from "@angular/core"; @Component({ selector: "my-app", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"] }) export class AppComponent implemen... Add solution -
CSS 2021-11-03 06:43:12
ng-multiselect-dropdown custom css
//Angular by default adds some _ngcontent-xx to your component CSS file //so that it won't conflict with other components. //To solve your problem you need to add below CSS in your global style.css file or //another way to make your component as encapsula... Add solution -
Javascript 2021-10-25 09:17:07
how to set direction based on language in angular
import { Component } from '@angular/core'; import { TranslateService, LangChangeEvent } from '@ngx-translate/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppCompon... Add solution -
Javascript 2021-10-12 06:41:07
how to push object in array in angular from an api
import { Component } from '@angular/core'; selector: 'my-app', styleUrls: [ './app.component.css' ] export class AppComponent { name = 'Angular'; myArray = [1, 2, 3, 4, 5, 6]; addNew(){ myArray. push(this. myArray. length + 1); Add solution -
Javascript 2021-10-09 15:26:08
nested formarray in angular 8
import { Component } from '@angular/core'; import { FormGroup, FormArray, FormBuilder } from '@angular/forms' @Component({ selector: 'app-root', templateUrl: './app.component.html', styl... Add solution -
Javascript 2021-09-30 00:40:05
use property in angular 8
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', &nbs... Add solution -
TypeScript 2021-09-28 19:07:02
remove selected object from an array in angular 11
import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: `<div> <h1>angular remove element from array</h1> <div *ngFor="let value of myArray;"> {{ value.id }}. {{ value.nam... Add solution