I have the following code: table.component.html <div *ngFor="let person of persons; let i = index;" class="tbody"> <div class="row"> <
I wanted to setup react with webpack, babel, and typescript myself since I would like to know more and have a consistent boilerplate for development. I have bee
If you call this function multiple times with the values of the observables obs1 and obs2 being the same each time, the returned array is not always the same. g
I have the file with a lot of export { default as NAME } from './PATH_TO_FILE'; And I want to declare types to global @vue/runtime-core inside GlobalComponents.
SELECT id, ( 6371 * ACOS( COS( RADIANS( db_latitude ) ) * COS( RADIANS( $user_latitude ) ) * COS( RADIANS( $user_longitude ) -
I'm using nuxt.js and vuesax as an UI framework, I did modify my default.vue in /layouts with a basic navbar template exemple from vuesax. Then I used @nuxtjs/r
I want to be able to initialise a class with or without value. If you pass a value then all methods of this class will expect this value as an argument and the
I am building a front-end page where I need @material-ui/lab. After installing the package with npm, I get a typescript error when compiling: TS2307: Cannot fin
Since this works: const f = <T extends string>(x: T) => x; f(""); interface Dictionary<T> { [key: string]: T; } const dict: Dictionary<numbe
I am using the material UI button for my component and want to change the button text based on a condition that if order amount is 0, show button text as "cance
I am writing a hook to make a post request that returns two properties, sessionId and sessionData. I am using this hook in a component. My hook looks like this.
i am sending an image file named figure.png from flask api and it is working fine. i have checked it in postman. now here is the angular code -> chart-compon
I used angular13. and Vs code. 'mat-sidenav-container' is not a known element Property binding ngIf not used by any directive on an embedded template. Make sure
I'm trying to optimise multiple made to an 3rd party API (Spotify) in my NestJS API. My code is working but I do not find a way to optimise it. @Get('') async
I'm trying to do a question answer catalogue that lets me pick questions with their respective answer options from a String Array, however when I try to assign
I have a react context state for my multi form input values: const [formValues, setFormValues] = useState({ sex: "male", unitSystem: "metric", hei
I am designing a system that tracks mutual fund information entered manually by the user, and am having difficulties getting the application to properly read th
In a .ts file I create a test to try and access a custom created command from command.js, createInbox function is underlined with red with the following message
How do we strip out spaces at the end of the 10digit number when user copies it from place (like email or word docs etc) and pastes it in the search bar? But th
JavaScript noob here... I'm exploring various options for throwing exceptions. Throwing a string / primitive value This seems to be bad practice for several rea