2017-07-28 79 views

回答

0

它是安全的導航操作」,做參考go here

或藉此例如

<md-select placeholder="Select Month" [(ngModel)]="monthSelected" 
    #userSelect> 

    <md-option *ngFor="let userSelection of CalanderContent" 
    [value]="userSelection"> 
    {{ userSelection.month }} 
    </md-option> 
    </md-select> 
    {{userSelect.selected.value.days}} <- Compile time error beacuse we didnt selected 
              any options at time of initializing. 
    {{userSelect.selected?.value?.days}} <- Correct because it waits if its selected 
              then , displays the value            
+0

即X·Y

卻是:??X不x?.y –

+0

x這裏是任何不能給出即時結果的東西 –