質問

I have a working backbone.js app that works with localstorage for data persistence. We would like to implement back-end with ASP.NET MVC. Can this be done in terms of reusing the backbone code, which has models, views fully implemented, and just change the source of data for backbone views?

正しい解決策はありません

他のヒント

Assuming the project uses the localstorage plugin, migrating should consist simply of

  • removing the plugin from the project
  • adding url endpoints to your models & collections

Localstorage simply overwrites the sync method so by reverting it everything should work fine with an API.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top