Category : variables

I would like to pass the IP variable obtained from request.headers[‘x-forwarded-for’] in my server.js file to my webpage index.html and displaying it. I have tried passing it in the <script> tag and even within the tag to display it immediately. That is my script now: server.js: const express = require(‘express’) const server = express() const ..

Read more

I’m using Angular 10, and i’m havin issues to create a Input Component with ControlValueAccessor. I’m creating public vars and public arrow functions, and when I call the arrow function is returning undefined. Here is my .ts code: import { Component, forwardRef, Input } from ‘@angular/core’; import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR } from ‘@angular/forms’; ..

Read more