angularjs - angular pass current object to ng-options get undefiend -


Trying to get the current object on ng-change with ng-option and I get undefined

  & lt; Select class = "form-control" ng-model = "currentDrawResults" ng-option = "draw.drawDate (draw.drawDate | Date: 'MMM D, Y') draw.DrawDate draw.drawDate to draw in lot.lastDraws track" NG- Change = "change draw (draw)" & gt; & Lt; / Select & gt;  

I was trying some answers from this site but I still am not working. What's the problem

change ng-change = "change scare (draw)" Ng-change = "changeDraw (currentDrawResults)

  var app = angular. Module ('app', []); app.controller ('fctrl', works $ Scope) {$ scope.lot = {Last date: [{Drawing: "2011-10-28 TT9: 30: 24.673Z"}, {Draw date: "2012-09-28 TT 9: 30: 24.673 S "}, {DrawDate:" 2014-05-28T09: 30: 24.673Z "},]}; $ scope.changeDraw = function (draw) {warning (draw.drawDate)}});  
  & lt; script src =" https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js "& Gt ;  

select class = "form-control" ng- Model = "currentDrawResults" ng-option = "(draw.drawDate | "Dav (Current Darentsts)" & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; / Div & gt;

code>


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -