Could you point me to the right direction what I should look up in order to understand the following code about trigger: "=trigger"
app.module.directive('messageModal', function ($compile) {
return {
scope: {
trigger: "=trigger",
},
controller: ['$scope', '$element', '$attrs', '$timeout', function ($scope, $element, $attrs, $timeout) {
$scope.trigger = function(title, message, modal_class, color, auto_hide){
What I understand is that by having scope: {}, the directive 'messageModal'has created a brand new scope object. BUT what does trigger: "=trigger" do? What about the $scope.trigger?
Please I need some directions on what I should learn in order to understand what the directive does. Thanks!