Category "angular"

How to format and validate email node js

I would like that email had format like: [email protected]. Which is the best way to do it? I have a component for registration and I have the field like this: <mat-f

How can I use moment.js to add days, excluding weekends?

I'm setting a default follow-up date two days from current date, which currently works: const Notify = moment().add(2, 'days').toDate(); However, I would lik

Bootstrap modal opens on background (Angular)

I have modal that I open from the table, that in the material tab Here is Modal HTML <div bsModal #createOrEditModal="bs-modal" class="moda

Show error message after reactive form submission

On an Angular 8 Reactive form I have the following: <form [formGroup]="form" (ngSubmit)="onSubmit()"> <input id="name" type="text" formControlName="

Remove Unused CSS on Angular 9 build process

I have an Angular 9 project which I added Bulma on angular.json > projects.projectName.architect.build.options.styles so it bundles up the framework on style

Where is my angular project picking up the A favicon.ico from? It's not in my project

Just recently, code that has worked correctly since 2018 has started falsely showing the old default "A" favicon.ico from Angular. I have combed my code and can

TypeScript issue with find and filter

let access = environment.access.filter(it => it.roleName === userRole); let access = environment.access.find(it => it.roleName == userRole); Property 'f

Secure google maps api key in an angular app

I'm using angular and google maps. In all the tutorials I find, the instruction says something as: add to your index.html code: <script src="https://maps.g

What is the difference between a javascript package, node package, and react package?

Are they all the same thing? Can a node program use react package, vice versa?

How to implement a resume pause functionality for file upload ? I am using node js, gridfs and multer

I have used the following link to upload files in mongodb which is working in my application : https://dev.to/shubhambattoo/uploading-files-to-mongodb-with-grid

How to make google chrome go full screen in Angular 4 Application?

I am developing an application where I want to implement such a thing where if user leaves from one component & enters other component, then in other compon

Typescript 4.6 and Arrow Functions

We recently updated to typescript 4.6 (from 4.5) and are experiencing some weird this issues. for example we previously had a function defined at #handleUnsaved

Disabled dates in ion-datetime (Ionic 4, Ionic 5)

The scenario I have implemented my ion-datetime into requires that certain dates can be disabled. Blockout dates. This is something that's fairly common in apps

editor.component.scss:17:100: ERROR: Unterminated string token - Angular + Scss

I am getting unterminated string token error in my angular application that uses scss as stringUrl. @import "~bootstrap/scss/bootstrap"; .view-container, .modu

Connecting a WebSocket in Angular

I have WebSocket Connection in Node which works fine. Now I want to use it in Angular with a rxjs websocket, but I have no idea how to solve the connection. co

ngbDatepicker set current month and year dropdown

In my Angular application, I used a datepicker called ngbDatePicker. It seems that it has a bug because the default selected month and year dropdowns is not cor

Angular 6 + jsQR - How to capture QR code on the first success?

I use jsQR (https://www.npmjs.com/package/jsqr) with my Angular app to decode QR. Generally I copy the code from jsQR into my app, and it works right away. Howe

Ionic ion-menu-button not working on first load

<ion-menu-button autoHide="false"></ion-menu-button> At first load it give an error: zone.js:1102 Unhandled Promise rejection: Cannot read properti

why my angular page doesn't load

hallo there i am a beginner with angular 6 but when ever i make a new project the app-rout tage doesn't load the app-component.html file it appears empty and i

Empty spaces added around HTML text when using Angular interpolation

Any idea why an empty space is added before text in HTML when using interpolation in Angular? Exemple in my Angular HTML template: <div class="info-title">