GithubHelp home page GithubHelp logo

hasClear with no effect about ion-time-picker HOT 3 CLOSED

mluis avatar mluis commented on August 16, 2024
hasClear with no effect

from ion-time-picker.

Comments (3)

souly1 avatar souly1 commented on August 16, 2024

Hi @mluis , nice to e-meet.
So let's try to solve the issue:
Ionic (and angular under it) has several limitations. One of those limitations is that directive attributes (or directives) can use camel case in javascript (aka: hasClear), but in html use hyphen (aka: has-clear).
This can also be seen here:

Angular normalizes an element's tag and attribute name to determine which elements match which directives. We typically refer to directives by their case-sensitive camelCase normalized name (e.g. ngModel). However, since HTML is case-insensitive, we refer to directives in the DOM by lower-case forms, typically using dash-delimited attributes on DOM elements (e.g. ng-model).

I myself miss this as well from time to time - in our case that would be using in html: has-clear="true", so try it out and tell me how things worked out.

Thanks

from ion-time-picker.

mluis avatar mluis commented on August 16, 2024

Hello! That worked! :-)
Thank you so much.
I will close the issue.

from ion-time-picker.

souly1 avatar souly1 commented on August 16, 2024

Glad to hear and that I could be of assistance!

from ion-time-picker.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.