Datepicker popup not respecting show-weeks=false
Same as #1132.
I'm on 0.11.0.
BTW why is it true by default? It's a dumb feature IMHO. No offense.
@ronnieoverby show-weeks is no longer a watched attribute, you have to pass it through the datepicker-options. You can change the configuration from a single point in your application, if you want to turn this off by default, and don't have to pass this in every datepicker!
Documentation should be updated to reflect that.
+1 docs need a quick fix
+1 docs needs to be updated
I think the documentation already does mention that:
Options for datepicker can be passed as JSON using the
datepicker-optionsattribute.
At nowhere does it mention that show-weeks can be used as an attribute when using a datepicker popup.
The line you mentioned does exist in the docs - however, under "Datepicker Settings" (where show-weeks is actually listed, it also says:
All settings can be provided as attributes in the
datepickeror globally configured through thedatepickerConfig.
Perhaps the use of "attributes" here is misleading, and "properties" wouldn't lead to as much confusion? Now that I'm looking at it again, I can see you've got a little Eye icon next to some of these options too - this must mean something! I didn't notice that icon at all until I was thinking about how these docs could be more readable. The current state of the docs lead me to believe all the Datepicker Settings could be listed as attrs for the datepicker directive in the html itself.
The plunker referenced on the examples page (http://angular-ui.github.io/bootstrap/) still has show-weeks as a html attribute. It gets even funnier, as the attribute works like a charm in the plunker :)
Also i'm not sure why a setting like this can't be configured on the html side. I feel having to keep these settings on the scope, promotes unwanted coupling.
+1 docs need an update
:+1: this is super confusing
+1 to super confusing, the documentation needs to be more clear
+1
Was wondering the exact same thing. +1. Also the CDNs on its plunker doesn't seem to work anymore. They hang.
It should be noted that any attribute without an eye icon is not supported for watching. The documentation makes this clearer in master with an explanation in the first few paragraphs.
As a consequence, closing this as resolved.
hi i have issue occur in angular datepicker after edit dateTime. that can't show the datetime. in Html dateTime aleardy exit but i can't show on UI