Commit 6eac388a0b831b4d389734b28dc50b9cc5002fca
1 parent
9589c679
Exists in
master
and in
8 other branches
Update from showPreview to showContent. We dont have preview page anymore.
Showing
2 changed files
with
1 additions
and
11 deletions
Show diff stats
src/app/components/article-box/article-box.directive.js
... | ... | @@ -49,16 +49,6 @@ |
49 | 49 | ArticleBoxController.prototype.showContent = function () { |
50 | 50 | var vm = this; |
51 | 51 | |
52 | - vm.$state.go('programa-conheca', { | |
53 | - slug: vm.article.slug | |
54 | - }, { | |
55 | - location: true | |
56 | - }); | |
57 | - }; | |
58 | - | |
59 | - ArticleBoxController.prototype.showPreview = function () { | |
60 | - var vm = this; | |
61 | - | |
62 | 52 | vm.$state.go('programa-conteudo', { |
63 | 53 | slug: vm.article.slug |
64 | 54 | }, { | ... | ... |
src/app/components/article-box/article-box.html
1 | -<article class="article-box" ng-click="vm.showPreview()" ng-class="vm.category.slug"> | |
1 | +<article class="article-box" ng-click="vm.showContent()" ng-class="vm.category.slug"> | |
2 | 2 | <div> |
3 | 3 | <h2 class="article-box--category">{{vm.category.name}}</h2> |
4 | 4 | <div class="article-box--image-wrapper"> | ... | ... |