$scope.states = ['Alabama', 'California', 'Delaware', ...]
would be used as:
<input ng-model='state' typeahead='states | filter:$viewValue'>
$(function(){ | |
//=========================================================== | |
// JavaScript object 'namespace' extension experiments | |
// by @addyosmani (comparing deep extension in vanilla JS vs. | |
// jQuery's $.extend) | |
// | |
// | |
// The goal here is to: | |
// |