1 function Symposium($resource){
6 authors:[ { name:'', surname:'', inst:'', email:'' } ],
8 this.Symposium = $resource( '/data/conference/Symposium/:_id', { _id:'' } );
10 this.$watch('$location.hashPath', this.hash_change);
12 Symposium.$inject=['$resource'];
14 Symposium.prototype = {
15 hash_change: function() {
16 var id = this.$location.hashPath;
18 this.symposium = this.Symposium.get({ _id: id });
22 console.debug( this.Symposium );
23 this.symposium = new this.Symposium( this.master );
26 var l = this.$location;
27 this.symposium.$save(function(symposium){
28 l.hashPath = symposium._id;