material icon indicating copy to clipboard operation
material copied to clipboard

app errors out when adding an md-autocomplete tag

Open dcu-sharepoint opened this issue 9 years ago • 1 comments

Actual Behavior: angular.js:14700 TypeError: Cannot read property 'split' of undefined at MdAutocompleteCtrl (angular-material.js:25314) at Object.invoke (angular.js:5040) at $controllerInit (angular.js:11000) at nodeLinkFn (angular.js:9865) at compositeLinkFn (angular.js:9174) at nodeLinkFn (angular.js:9928) at compositeLinkFn (angular.js:9174) at nodeLinkFn (angular.js:9928) at compositeLinkFn (angular.js:9174) at publicLinkFn (angular.js:9039) "

"

  • What is the issue? *

  • What is the expected behavior? the app should display an input text box control

CodePen (or steps to reproduce the issue): *

  • Details:

AngularJS Versions: * "dependencies": { "@types/angular": "^1.6.32", "@types/angular-material": "^1.1.54", "@types/jquery": "^3.2.12", "angular": "^1.6.6", "angular-animate": "^1.6.6", "angular-aria": "^1.6.6", "angular-material": "^1.1.5", "angular-material-icons": "^0.7.1", "angular-messages": "^1.6.6", "jquery": "^3.2.1" }

Additional Information:

  • Browser Type: * chrome/latest version

  • OS: * windows 10

  • Stack Traces: angular.js:14700 TypeError: Cannot read property 'split' of undefined at MdAutocompleteCtrl (angular-material.js:25314) at Object.invoke (angular.js:5040) at $controllerInit (angular.js:11000) at nodeLinkFn (angular.js:9865) at compositeLinkFn (angular.js:9174) at nodeLinkFn (angular.js:9928) at compositeLinkFn (angular.js:9174) at nodeLinkFn (angular.js:9928) at compositeLinkFn (angular.js:9174) at publicLinkFn (angular.js:9039) "

    "


CodePen (or steps to reproduce the issue): *

https://codepen.io/LuisCarlosRod/pen/MEwPOb

just simply adding the md-autocomplete tag produces the error.

Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.

dcu-sharepoint avatar Sep 15 '17 16:09 dcu-sharepoint

I found the error or my ways, it was a closing angle bracket ">" in the wrong place; took over three hours to find it.... next time i'll use a magnifying glass... :(

dcu-sharepoint avatar Sep 15 '17 20:09 dcu-sharepoint