我在角度材料版本1.1.1中使用日期选择器时遇到了一些麻烦,如果我改为角度材料1.1.0日历工作,就像我放在codepen上:http://codepen.io/lhrossi/pen/ eBQLoy
这是我的HTML:
<md-content md-theme="infocargas" layout-padding>
<form name="newDeliveryForm">
<div layout-gt-xs="row">
<md-input-container class="md-block" flex-gt-xs>
<label>Operador Logístico (Bloqueado)</label>
<input ng-model="company" disabled />
</md-input-container>
</div>
<div layout-gt-sm="row">
<md-input-container flex-gt-sm>
<label>Digite CTe</label>
<input ng-model="delivery.cte" />
</md-input-container>
</div>
<div layout-gt-sm="row">
<md-input-container flex-gt-sm>
<label>Entrega Para</label>
<!--<md-datepicker ng-model="myDate"></md-datepicker>-->
<md-datepicker ng-model="myDate" md-placeholder="Enter date"></md-datepicker>
</md-input-container>
</div>
<md-button class="md-raised md-primary">Gerar Código</md-button>
</form>
</md-content>
Run Code Online (Sandbox Code Playgroud)
这是一个错误,还是有其他想法呢?我害怕改变材料版本,以免破坏系统上的其他东西.
我感谢任何帮助.