Skip to content

Conversation

@andrrrl
Copy link
Contributor

@andrrrl andrrrl commented Jul 21, 2020

El hint usa funcionalidad (click) del elemento padre:

  • <span hint="actualizar" (click)="actualizar()>Hola Mundo Plano!</span>

El ejemplo anterior mostrará un texto con un hint, el cual ejecutará actualizar() al ser clickeado.

@andrrrl andrrrl self-assigned this Jul 21, 2020
this.cdr.detectChanges();
}

// Si el elemento que tiene la directiva [hint] tiene un evento (click), este se ejecutará, guste o no.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y si no lo tiene? pincha!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jaja ahí se fixeó eso!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liquid36 decime si ves bien el fix 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta bien, pense que hostElement era una componente Angular, pero es un elemento del DOM, así que se ve que siempre tiene click.

@andrrrl andrrrl requested a review from liquid36 July 30, 2020 18:33
this.cdr.detectChanges();
}

// Si el elemento que tiene la directiva [hint] tiene un evento (click), este se ejecutará, guste o no.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta bien, pense que hostElement era una componente Angular, pero es un elemento del DOM, así que se ve que siempre tiene click.

@andrrrl andrrrl merged commit 591ee09 into master Aug 5, 2020
@andrrrl andrrrl deleted the hint-clickable branch August 5, 2020 13:53
liquid36 pushed a commit that referenced this pull request Aug 7, 2020
# [6.10.0](v6.9.0...v6.10.0) (2020-08-07)

### Features

* **hint:** permite hint clickeable ([#196](#196)) ([591ee09](591ee09))
@liquid36
Copy link
Contributor

liquid36 commented Aug 7, 2020

🎉 This PR is included in version 6.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants