- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
public destinationChanged(element: string): boolean {
if (Boolean(this.scope.newDestination)) {
if (element == "input") {
return true;
} else {
return false;
}
} else {
if (element == "select") {
return true;
} else {
return false;
}
}
}
Разметочка:
<div ng-show="controller.destinationChanged('select')">
<!---->
</div>
<div ng-show="controller.destinationChanged('input')">
<!---->
</div>
guest 25.03.2016 14:35 # 0
м?
kir_rik 25.03.2016 14:44 # 0
guest 25.03.2016 20:54 # +1
guest 25.03.2016 20:55 # +3
1024-- 25.03.2016 21:06 # +4
istem 25.03.2016 22:18 # +1
kir_rik 27.03.2016 16:03 # 0
d_fomenok 26.03.2016 21:15 # 0
kir_rik 27.03.2016 16:03 # 0
<div ng-show="!newDestination">
<!---->
</div>
<div ng-show="newDestination">
<!---->
</div>
kir_rik 29.08.2018 00:41 # 0