What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-19 10:40:07
create class angular
// to create a model class, we first need to create a new file //f.e person.ts export class Person { constructor( public name: string, public lastName: string, public age:number ) {} } //now that we have the model class we can create array... Add solution -
Other 2022-02-18 01:55:17
ionic 5 android hardware back button doesn't exit app
import { IonRouterOutlet, Platform } from '@ionic/angular'; import { Plugins } from '@capacitor/core'; const { App } = Plugins; ... constructor( private platform: Platform, private routerOutlet: IonRouterOutlet ) { this.platform.backButton.subscri... Add solution -
TypeScript 2022-02-17 02:45:01
typescript ge t current screen resolution
import { Component, OnInit, OnDestroy, Input } from "@angular/core"; // Import this, and write at the top of your .ts file import { HostListener } from "@angular/core"; @Component({ selector: "app-login", templateUrl: '.... Add solution -
Javascript 2022-02-16 23:25:09
react current date and time command
import React, { Component } from 'react';import { render } from 'react-dom'; class App extends Component { constructor() { this.state = { currentDateTime: Date().toLocaleString() } } render() { return ( <div> <p&g... Add solution -
Html 2022-02-16 02:45:02
ng bootstrap input
<!-- Html --> <label for="title">Title:</label> <input id="title" type="text" class="form-control" [(ngModel)]="title" /> <!-- Typescript --> voteItem: string; constructor... Add solution -
Other 2022-02-13 19:40:07
React tottural
import React from 'react' import ReactDOM from 'react-dom' import ReactBootstrap from 'react-bootstrap' import { ListGroup } from 'react-bootstrap' import { ListGroupItem } from 'react-bootstrap' import { Panel } from 'react-bootstrap' import { ButtonGrou... Add solution
Best helpers
Ranking is empty