Skip to content

Using with app's that are coded using controller as syntax #58

Description

@chrissearle

I was looking to update an existing app to use local storage.

This app is written consistently with "Controller as namespace" in the views and no use of $scope in the controllers themselves.

So - e.g. given that a controller exposes

this.dataObject = {}

Is there a good approach to binding that two-way into localstorage without having to re-write everything back to $scope injection on the controller?

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