Nothing here yet.
Nothing here yet.
No blogs yet.
Get Alkshendra Maurya thanks for quick reply, but what i want to archive is Example (https://drive.google.com/file/d/0B9NUzGM94jwFZ082Ylhxb08yVGM/view?usp=drivesdk) User can only view the "View" area rest is hidden he can pan and zoom into that, what i want to do is i want to only add those items after panning or zooming which will be visible in the v area.
Its the problem where you should look at one way binding / reducing bindings. One of the best way to use two way binding with a huge data is virtual repeat. I have kind of same problem in my application, where i have around 10k rows with 13-18 columns which have 2-4 different components which needs two way binding. There are many virtual repeat directives if you google them, however i am using md-virtual-repeat by Angular Material. The one problem it can create for you that virtual repeat requires all item height to be equivalent, so if you have a row of 10px then all rows should be 10px. The only dark side of this, rather then this it works smoothly. I saw that google fonts have kind of same thing on their new home page which does the same thing. The logic behind virtual repeat is pretty simple, imagine you have a wrapper of 250px and have 100 items 5px each, now you have items worth 500px and viewarea is 250px what virtual repeat will do is when you scroll in your container, it only loads that items which can be visible in that 250px area ( 2/3 extra to maintain smooth scrolling ) I am not sure if the Material design one will work for your issue, however you can write a custom one which can work with dynamic heights :)
I think there was a confusion in my explanation, what i am looking for is - ROUTE : /xyz CONTROLLER : ... $scope .selected_data = [{ name: "hello" , value : "world" }]; ... ROUTE : /abc CONTROLLER : ... $scope .some_var = "" ; ... Now Imagine the case as, default route is /xyz and user is there he done some selection and now he jumped to /abc , if he comes back to /xyz he will loose his selection he did in /xyz as when he navigates between routes it reloads the controller, What i am looking for is a way form which i can disable reloading the controller while navigating with ui-rotuter. Hope this clears what i meant! :)