Skip to content

The config $watch isn't working #6

@xavadu

Description

@xavadu

Hello,
I understand that this $watch should be listening the config,

https://github.com/lavinjj/angular-responsive/blob/master/src/responsive-directive.js#L91

and if it change destroy and create the element again, per example, when a tablet is turned.

I tried to change to:
unwatch = scope.$watch( function() {return scope.$eval( attr[responsiveType] ); }, function ()...

but it isn't a good idea, because it is called a lot of time in the digest,
any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions