diff --git a/bower.json b/bower.json index a8dfd6d..473b8fc 100644 --- a/bower.json +++ b/bower.json @@ -9,7 +9,8 @@ "angular-ui-router": "~0.2.15", "bootstrap": "~3.3.5", "moment": "~2.10.6", - "angular": "~1.4.2" + "angular": "~1.4.2", + "angularjs-socialshare": "~0.1.13" }, "devDependencies": { "angular-mocks": "~1.4.2" diff --git a/src/app/index.module.coffee b/src/app/index.module.coffee index 092c50f..aecc524 100644 --- a/src/app/index.module.coffee +++ b/src/app/index.module.coffee @@ -1 +1,7 @@ -angular.module 'morano2017', ['ngAnimate', 'ngTouch', 'ngSanitize', 'ui.router'] +angular.module 'morano2017', [ + 'ngAnimate' + 'ngTouch' + 'ngSanitize' + 'ui.router' + '720kb.socialshare' +] diff --git a/src/app/main/quote/quote.controller.coffee b/src/app/main/quote/quote.controller.coffee index d95385e..1e534f1 100644 --- a/src/app/main/quote/quote.controller.coffee +++ b/src/app/main/quote/quote.controller.coffee @@ -1,4 +1,4 @@ angular.module 'morano2017' - .controller 'MainQuoteController', (sentence)-> + .controller 'MainQuoteController', ($state, $stateParams, sentence)-> @sentence = sentence - null + @url = $state.href 'main.quote', $stateParams, absolute: yes diff --git a/src/app/main/quote/quote.html b/src/app/main/quote/quote.html index fb854b5..97fef6c 100644 --- a/src/app/main/quote/quote.html +++ b/src/app/main/quote/quote.html @@ -1,8 +1,26 @@
- « {{ quote.sentence }} » + « {{ quote.sentence }} »

+ + + +