The issue is on this line: https://github.com/rorymadden/angular-date-dropdowns/blob/master/directive.js#L141 My `attrs` variable doesn't have a required attribute so you can't call split on undefined. I see you require angular 1.2.1 and I'm on angular 1.3.15. Is that the issue?