This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Description
I wrote a directive that takes in a parameter like twoWords (camel case) and when I try to pull in the variable from scope in a controller, it doesn't work. One the other hand, twowords works perfectly.
//part of my directive
var controller = ['$scope', function ($scope) {
console.log($scope.twoWords); //this doesn't work
console.log($scope.twowords); //this works
}];
return {
restrict: 'EA',
scope: {
twoWords: '=',
twowords: '='
},
controller: controller,
templateUrl: template
}