Skip to content

Passing variables to patterfly-notification-drawer triggers infinite loop #419

@benjaminapetersen

Description

@benjaminapetersen

If I pass the template includes via $scope variables like this:

          angular.extend($scope, {
            notificationGroups: [{
              heading: 'Tab 1',
              subHeading: 'woohoo!',
              notifications: [{
                unread: true,
                message: 'Hello world'
              }]
            }],
            headingInclude: 'views/directives/notifications/heading.html',
            subheadingInclude: 'views/directives/notifications/subheading.html',
            notificationBodyInclude: 'views/directives/notifications/notification-body.html',
            notificationFooterInclude: 'views/directives/notifications/notification-footer.html',
            customScope: {}
          });
  <div
    pf-notification-drawer
    heading-include="headingInclude"
    subheading-include="subheadingInclude"
    notification-body-include="notificationBodyInclude"
    notification-footer-include="notificationFooterInclude"
    custom-scope="customScope">
  </div>

My console logs some pretty gnarly things:

screen shot 2017-02-16 at 5 00 39 pm

And the chrome-helper process associated with this page very quickly consumes over 1GB of memory (this is when I force quite, it seems to climb indefinitely).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions