hmm, you pass in two arguments, yet the function only takes one (an event)? And shouldn't it be `$scope.generateWidgetLink`? Not completely sure whether this should be called in this place actually or whether it's just a code remnant?