خرید بک لینک

Vote count: 0

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) {
    retu {
        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 lea in order to understand what the directive does. Thanks!

asked 38 secs ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 24 تير 1395 ساعت: 4:45

صفحه بندی