File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1414@endsection
1515
1616@section (' content' )
17- <div class =" row" >
17+ <div class =" row" ng-app = " backPack " >
1818 <div class =" col-md-8 col-md-offset-2" >
1919 <!-- Default box -->
2020 @if ($crud -> hasAccess (' list' ) )
Original file line number Diff line number Diff line change 1414@endsection
1515
1616@section (' content' )
17- <div class =" row" >
17+ <div class =" row" ng-app = " backPack " >
1818 <div class =" col-md-8 col-md-offset-2" >
1919 <!-- Default box -->
2020 @if ($crud -> hasAccess (' list' ) )
Original file line number Diff line number Diff line change 2222 }
2323
2424? >
25- <div ng-app = " backpackTable " ng- controller =" tableController" @include (' crud::inc.field_wrapper_attributes' ) >
25+ <div ng-controller =" tableController" @include (' crud::inc.field_wrapper_attributes' ) >
2626
2727 <label >{!! $field [' label' ] ! !} </label >
2828
6666
6767 </table >
6868
69- <div class =" array-controls btn-group" >
69+ <div class =" array-controls btn-group m-t-10 " >
7070 <button class =" btn btn-sm btn-default" type =" button" ng-click =" addItem()" ><i class =" fa fa-plus" ></i > Add {{ $item_name } } </button >
7171 </div >
7272
9696 <script type =" text/javascript" src =" https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" ></script >
9797 <script type =" text/javascript" src =" https://cdnjs.cloudflare.com/ajax/libs/angular-ui-sortable/0.14.3/sortable.min.js" ></script >
9898 <script >
99- angular .module (' backpackTable' , [' ui.sortable' ], function ($interpolateProvider ){
99+
100+ window .angularApp = window .angularApp || angular .module (' backPack' , [' ui.sortable' ], function ($interpolateProvider ){
100101 $interpolateProvider .startSymbol (' <%' );
101102 $interpolateProvider .endSymbol (' %>' );
102- })
103- .controller (' tableController' , function ($scope ){
103+ });
104+
105+ window .angularApp .controller (' tableController' , function ($scope ){
104106
105107 $scope .sortableOptions = {
106108 handle: ' .sort-handle'
You can’t perform that action at this time.
0 commit comments