I can't seem to figure out what I'm doing wrong. It feels like such a silly mistake, and I was hoping someone could lend a hand in solving it.
Here is my controller - I'm utilizing ng-file-upload, where Upload is sourced from:
.controller('main', ['$scope', 'Upload', '$timeout', function ($scope, Upload, $timeout) {
$scope.shareLink = false;
}]);
and this is my template
<i id="share_mail" ng-click="shareLink = !shareLink" ng-style="!shareLink ? 'opacity:0.5;' : ''" class="fa fa-envelope-o"></i>
Error message
Error: name.
replace is not a function. (In 'name.
replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
return offset ? letter.toUpperCase() : letter;
})', 'name.
replace' is undefined)
camelCase@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:2399:12
css@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:2842:21
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:2968:11
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:24962:60
forEach@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:323:24
ngStyleWatchAction@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:24962:14
$watchCollectionAction@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:14110:21
$digest@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:14243:31
$apply@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:14506:31
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:21443:29
eventHandler@http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:3014:25
(anonymous function)angular.js:11606
(anonymous function)angular.js:8556
$digestangular.js:14260
$applyangular.js:14505
(anonymous function)angular.js:21442
eventHandlerangular.js:3013