html - Angular2 Typescript Confirmation popover -


i'm start learning angular2 + typescript , trying find ng-really-message, ng-really-click (in angularjs) when i'm click delete button. can propose me best way? , link documentation. p.s. i'm using asp.net core, .net core

you implement without need external module/directive:

import { component } '@angular/core'; @component({   selector: 'app-root',   template: `      <a (click)="confirm('are ready?', takeaction)">delete me</a>   ` }) export class appcomponent {    confirm(msg, fn){      let result = confirm(msg)      if (result) {        fn()      }    }     takeaction(){       console.log('taking action!!')    } } 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -