The application is simple, to build a color picker: When click the rect box, it will check the color value below and title color will also change. color-picker.ts: import {Component, Output, EventEmitter, Input} from "@angular/core"; import {RED
// 写法一: 1 @Components({ 2 ...., 3 inputs:['init'], 4 outputs:['finish'] 5 }) 6 export class xxx(){ 7 okEvent: EventEmitter<any> = new EventEmitter(); 8 9 ok(){ 10 // this should match the type define in EventEmitter 11 this.okEvent.emit('the value w
本文转自:https://loiane.com/2017/08/angular-hide-navbar-login-page/ In this article we will learn two approaches to hide the Navbar Menu when displaying the Login page in Angular projects. Update December 2017: code updated to Angular v5 and Material v5.
一.编写service //删除 public int delete(Long id); //多条删除 public int deletes(List<Long> id); 二.编写serviceImpl @Override public int delete(Long id) { return brandDao.deleteByPrimaryKey(id); } @Override public int deletes(List<Long> id) { if(id!=null){