Javascript 为什么md select不使用角点填充?
我在我的应用程序中使用material select,当我使用bootstrap时,它与normal select一起工作。这里有什么问题?。这是密码 HTML:Javascript 为什么md select不使用角点填充?,javascript,html,angularjs,material-design,Javascript,Html,Angularjs,Material Design,我在我的应用程序中使用material select,当我使用bootstrap时,它与normal select一起工作。这里有什么问题?。这是密码 HTML: <md-select ng-model="widget.chartConfig.options.chart.type" > <md-option ng-value="t.title" data-ng-repeat="t in widget.chartTypes">{{ t.title }}<
<md-select ng-model="widget.chartConfig.options.chart.type" >
<md-option ng-value="t.title" data-ng-repeat="t in widget.chartTypes">{{ t.title }}</md-option>
</md-select>
var app = angular.module('DemoApp', ['ngMaterial']);
app.controller('MainCtrl', function($scope) {
$scope.widget = [];
$scope.widget.push(
{
chartTypes:[
{"id": "line", "title": "Line"},
{"id": "spline", "title": "Smooth line"},
{"id": "area", "title": "Area"},
{"id": "areaspline", "title": "Smooth area"},
{"id": "column", "title": "Column"},
{"id": "bar", "title": "Bar"},
{"id": "pie", "title": "Pie"},
{"id": "scatter", "title": "Scatter"}
],
chartConfig : {
options: {
chart: {
type: "bar"
}
}
}
}
);
});
这是你的名字 小部件是任意数组。
您需要用widget[0]
这是更新的plunker 您错过了在这两个位置引用widget index
widget
tiwidget[0]
HTML
<md-select ng-model="widget[0].chartConfig.options.chart.type" >
<md-option ng-value="t.title" data-ng-repeat="t in widget[0].chartTypes">{{ t.title }}</md-option>
</md-select>
{{t.title}}
@Sajeetharan错误总是由人犯的:p否则我们就是上帝:D