I have a directive in Angular Js that masks phone numbers to US format (xxx) xxx-xxxx , How can I recreate the same directive in Angular ( typescript ) ? I created a directive from another post but It alters the model too, My Requirement is that it should visually show as (xxx) xxx-xxxx, but the model value should not
Tag: angular2-directives
Angular 2 Change Class On Condition
I have three buttons in a view and on page load I am displaying the first buttons content. Once a button is clicked the button becomes active but on page load the initial button is not set to active. In order to show the first button active I added this to the div: The problem with this is now when