Permalink
Browse files

switch back to ng-include

  • Loading branch information...
1 parent 089ef8e commit 482d3ba6ccb1a5e7033c319fcdc7b3bc085ea857 @clkao clkao committed Aug 2, 2014
Showing with 3 additions and 1,236 deletions.
  1. +1 −6 app/app.ls
  2. +2 −2 app/partials/hack.jade
  3. +0 −1,228 vendor/scripts/ct-ui-router-extras.js
View
@@ -2,7 +2,7 @@
angular.module('scroll', []).value('$anchorScroll', angular.noop)
-angular.module \app <[ui app.templates app.controllers ct.ui.router.extras ui.router.stateHelper]>
+angular.module \app <[ui app.templates app.controllers ui.router ui.router.stateHelper]>
.config <[stateHelperProvider $urlRouterProvider $locationProvider]> ++ (stateHelperProvider, $urlRouterProvider, $locationProvider) ->
stateHelperProvider.setNestedState do
name: 'about'
@@ -24,11 +24,6 @@ angular.module \app <[ui app.templates app.controllers ct.ui.router.extras ui.ro
url: '/__index'
* name: 'doc'
url: '/{docId}'
- views:
- 'hack-index':
- template-url: 'partials/hack-index.html'
- 'pad-container':
- template-url: 'partials/pad-container.html'
$urlRouterProvider
.otherwise('/about')
@@ -1,3 +1,3 @@
.hackfolder(resize,ng-cloak)
- .index(ui-view="hack-index",ng-class="{collapsed: collapsed, scrollbar: hasScrollbar, index_show: sidebar}",ng-click="collapsed=!collapsed",ng-style='{height: contentHeight}',scrollbar)
- .pad-container(ui-view="pad-container",ng-style='{height: contentHeight}')
+ .index(ng-include="'partials/hack-index.html'",ng-class="{collapsed: collapsed, scrollbar: hasScrollbar, index_show: sidebar}",ng-click="collapsed=!collapsed",ng-style='{height: contentHeight}',scrollbar)
+ .pad-container(ng-include="'partials/pad-container.html'",ng-style='{height: contentHeight}')
Oops, something went wrong.

0 comments on commit 482d3ba

Please sign in to comment.