{"action":"created","issue":{"url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/98","labels_url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/98/comments","events_url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/98/events","html_url":"https://github.com/kenji0919/pirodx_manager/pull/98","id":55896727,"number":98,"title":"Install angular local storage","user":{"login":"kenji0919","id":2742315,"avatar_url":"https://avatars.githubusercontent.com/u/2742315?v=3","gravatar_id":"","url":"https://api.github.com/users/kenji0919","html_url":"https://github.com/kenji0919","followers_url":"https://api.github.com/users/kenji0919/followers","following_url":"https://api.github.com/users/kenji0919/following{/other_user}","gists_url":"https://api.github.com/users/kenji0919/gists{/gist_id}","starred_url":"https://api.github.com/users/kenji0919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenji0919/subscriptions","organizations_url":"https://api.github.com/users/kenji0919/orgs","repos_url":"https://api.github.com/users/kenji0919/repos","events_url":"https://api.github.com/users/kenji0919/events{/privacy}","received_events_url":"https://api.github.com/users/kenji0919/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T13:09:39Z","updated_at":"2015-01-29T13:47:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kenji0919/pirodx_manager/pulls/98","html_url":"https://github.com/kenji0919/pirodx_manager/pull/98","diff_url":"https://github.com/kenji0919/pirodx_manager/pull/98.diff","patch_url":"https://github.com/kenji0919/pirodx_manager/pull/98.patch"},"body":"configページ作成の続きです。\r\n\r\nangular-localFoargeはwebpackと相性があんまり良くないみたいだし、\r\nIndexedDBとかWebSQLをバックエンドとして使う必要もないかなぁ、\r\nと思ったので、angularLocalStorageをインストールしました。\r\n\r\ncontorllerのコンストラクタにstorageの依存を追加すれば、\r\n`storage.get(key)`と`storage.put(key, obj)`で簡単にオブジェクトを保存できます。\r\n\r\nシンプルに行きましょう。\r\n\r\n【参考】\r\n$scopeにバインドする仕組みもありますが、ややこしくなりそうだし、\r\n$scopeの依存も入れないとダメなので、保留にしています。必要にならない限り入れません。\r\nhttp://angularjsninja.com/blog/2013/09/13/angular-localstorage/"},"comment":{"url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/comments/72025926","html_url":"https://github.com/kenji0919/pirodx_manager/pull/98#issuecomment-72025926","issue_url":"https://api.github.com/repos/kenji0919/pirodx_manager/issues/98","id":72025926,"user":{"login":"kenji0919","id":2742315,"avatar_url":"https://avatars.githubusercontent.com/u/2742315?v=3","gravatar_id":"","url":"https://api.github.com/users/kenji0919","html_url":"https://github.com/kenji0919","followers_url":"https://api.github.com/users/kenji0919/followers","following_url":"https://api.github.com/users/kenji0919/following{/other_user}","gists_url":"https://api.github.com/users/kenji0919/gists{/gist_id}","starred_url":"https://api.github.com/users/kenji0919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenji0919/subscriptions","organizations_url":"https://api.github.com/users/kenji0919/orgs","repos_url":"https://api.github.com/users/kenji0919/repos","events_url":"https://api.github.com/users/kenji0919/events{/privacy}","received_events_url":"https://api.github.com/users/kenji0919/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T13:47:03Z","updated_at":"2015-01-29T13:47:03Z","body":"サービス側でget_config, put_configとかの関数を使って、\r\n全部そこから呼ぶようにした方がいいですかね…？\r\n\r\n全部のコントローラにstorageの依存を書くものアレなので…修正してきます。"}}