Angularjs Directive not loading PopOver content -
I'm trying to develop a Facebook like notification (such as when an icon receives requests, Item number in the item which is the number of notifications }); The items are settled in the controller, and there I am using $ timeout to fetch new data from the database and fill the scope. In the UI, I have a button that shows the number of new notifications and on the click I want to show popup with the item The problem is that when the button is clicked, Popovar does not load new items Used to be. for your instructions. app.directive ('popOver', function ($ COLLECTION) {var itemsTemplate = " & lt; div ng-repeat = 'item '& Gt; {{items}}
"var getTemplate = function (contentType) {var template ='; ',' A ', transclusions true, templates: "
& lt; Button pop-over item = "item" class = "navbar-btn btn-info round-button" title = "notifications:" & gt; {{NewAlertCount}} & lt; / Button & gt; The director has his own scope, so I believe that when you change the
$ scope.items object, so I will add it:
scope: {items: '= Items'},
Comments
Post a Comment