Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install ? #52

Open
ekarudianto opened this issue Jun 16, 2015 · 7 comments
Open

How to install ? #52

ekarudianto opened this issue Jun 16, 2015 · 7 comments

Comments

@ekarudianto
Copy link

I think it would be good if you provide the documentation to install this component since I've found nothing inside http://kamilkp.github.io/angular-sortable-view/#?tab=7 or the github page of this component it self.. or did I missed something ?

@kamilkp
Copy link
Owner

kamilkp commented Jun 16, 2015

Just include angular-sortable-view as a dependency in your angular module and use the directives explained in readme.md

@ekarudianto
Copy link
Author

I see, does this component support the angular version 1.3.15 ? and also where do I get the source code ? is it in the master branch ? or other branch ? @kamilkp

@kamilkp
Copy link
Owner

kamilkp commented Jun 16, 2015

Afaik yes. Master

@ekarudianto
Copy link
Author

so I've been install the component to my angularjs. The thing is, I'm using requirejs but it doesn't work, so I don't really know what I've been missing

I've include the component on my config file

here is the codes

require.config(
{
 paths: {
 angular:"path to angular",
 angular-sortable: "path to angular sortable"
            },
 shim: {
   angular-sortable:['angular'] 
 }
}
)

and I've load the component

'use strict';

define(
 [
  'angular',
  'angular-sortable'
 ], function(angular) {
   return angular.module('myApp',['angular-sortable-view']);
 }
)

this is the html structure

<div class="sortable-container" sv-root sv-part="ui.Treegrid.Options.Header.Jobs">
  <div class="well" ng-repeat="item in ui.Treegrid.Options.Header.Jobs" sv-elements="opts">
  {{item.text}}
  </div>
</div>

did I missed something ? @kamilkp

@kamilkp
Copy link
Owner

kamilkp commented Jun 16, 2015

Requirejs syntax is not supported yet. Feel free to submit a PR for that if you want.

@BrankoIlic
Copy link

I am new to the angular, and get stuck in using your script, but your answer about including angular-sortable-view as a dependency in angular module, has answered my problems. Thanks!

@VanTudor
Copy link

I totally agree. I forgot to mention it as a dependency and i wasted like 1 hour trying to figure out why it doesn't work. Thank you for the response, but you should definitely tell people in the read.me how to install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants