1 angular.service('conference', function($resource){
2 this.Work = $resource( '/data/conference/Work/:_id', { _id:'' } );
3 }, {$inject:['$resource'],$creation:'eager'});
10 authors:[ { name:'', surname:'', inst:'', email:'' } ],
13 this.$watch('$location.hashPath', this.hash_change);
17 hash_change: function() {
18 var id = this.$location.hashPath;
20 this.work = this.Work.get({ _id: id });
24 this.work = new this.Work( this.master );
27 var l = this.$location;
28 this.work.$save(function(work){
29 l.hashPath = work._id;