Category : frontend

I have 8 (eight) variables produtoNome unidadeUtilizada unidadeNome codigoSistemaFormatado precoPadrao precoCusto valorCustoMedio valorCustoReferencial These variables are being printed on app.component.html. The problem: The variable produtoNome, unidadeUtilizada, unidadeNome, codigoSistemaFormatado, precoPadrao, precoCusto is loaded when the method onChangedProduto is clicked. But loading the page again, just produtoNome, unidadeUtilizada, unidadeNome, codigoSistemaFormatado is printado. And I can’t solve. [app.component.ts] ..

Read more

I want to align the bottom element in an HTML file on top of the parent element, I do not want to overlay it, I literally want the bottom element to be on top of the top element: Example: HTML: <div class="top-container"></div> <div class="bottom-container"></div> CSS: .top-container { width: 200px; height: 200px; background-color: green; } .bottom-container ..

Read more

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <link rel="stylesheet" href="style.css" /> <title>Movie Seat Booking</title> </head> <body> <div class="movie-container"> <label>Pick a movie:</label> <select id="movie"> <option value="10">Avengers: Endgame ($10)</option> <option value="12">Joker ($12)</option> <option value="8">Toy Story 4 ($8)</option> <option value="9">The Lion King ($9)</option> </select> </div> <ul class="showcase"> <li> ..

Read more

I’m extremely new to typescript (and JavaScript for that matter), I think I’ve mastered the fundamentals when it comes to TypeScript (variables, arrays, if/else statements etc) but I would like to add functionality to my static webpages and I can’t keep using console logs obviously. My experience with JavaScript is quite limited but for JavaScript ..

Read more

how to pass the variable "devscreens" from loginform to app.js on the below criteria and move to the next screen in react js. Loginform.js: async doLogin(){ this.setState({invalid_user:false}); this.setState({welcome_user:false}); this.setState({devscreens:false}); if (!this.state.username){ return; } this.setState({ buttonDisabled: true }) try{ const response = await axios.get(`${loginidURL}`) if(response.status === 200) { this.setState({welcome_user:true}); console.log(response.data.username) console.log(response.data) console.log(response.data.userlevel) if (response.data.userlevel == 11 ..

Read more