Coder Social home page Coder Social logo

angular-couch-potato's People

Contributors

laurelnaiad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-couch-potato's Issues

Enter state after vendor library is loaded.

I have a situation where my app needs to enter a certain state only after a vendor library has run it's own proprietary script loading mechanism. Basically, I need to listen for the following:

document.on('mp_ready', function() { 
    //resolve
});

What is the proper way to accomplish this?

Thanks!

Add minify js file

I think it need to add the minify file angular-couch-potato.min.js in the dist folder.

Thanks!

How to load the Main Controller?

I am trying the sample codes, it's really nice to lazy load controllers in the routes, but failed to load the Main controller and causing error with the "ng-controller='MainCtrl'" in index.html. Is there a best practice for loading main controller for ng apps?

sample ui-router example code is not work

error.
I think that the dependencies is too new.But the relevant code is not matching.
May be I need add angular-router into html.
Whatever, I hope you can fix it.

Add http interceptor factory

Hi, how would one add http interceptor factory to a project that uses couch potato? I have tried but cannot get it to work.

Guidance on how to get Directives in

This is all based upon your ui-router sample where I got your stuff as written to work. Now unto my stuff :0
I tried adding paths to my directives as follows in routeDefs.js and they were not picked up by the view.

resolve: {
dummy: $couchPotatoProvider.resolveDependencies([
'controllers/ContactViewController',
'directives/app-color',
]),
I then put them in the require define in the routeDefs.js and then they worked in my view.
define([
'app',
'directives/app-color'
], function(app) {...}

any clue as to why the require in your $couchPotatoProvider.resolveDependencies gets the controller to work but the directives aren't coming in?

This is really a broader question where I would like to bring in a bunch of stuff for the route, like services, factories, directives, etc.

Thanks
H

Example of ad-hoc module loading

Hi @laurelnaiad,

Great initiative here! In the docs it says you intend to allow ad-hoc loading of modules. My question is: do you have an example of how to do this? Also, will doing this require (ehem) require.js?

Thanks!
Andy

how to lazy load a controller whose name has a variable from the $stateParams in resolve's dummy?

My code is like this:
.state('partials.main', {
// parent: 'partials',
url: '/{func}/main',
resolve: {
dummy: function ($stateParams){
var s = $couchPotatoProvider.resolveDependencies(['controllers/'+$stateParams.func+'Controller']);
return s;
}
},
templateUrl:
function ($stateParams){
return '/partials/'+$stateParams.func + '/main.html';
},
controllerProvider:
function ($stateParams){
return $stateParams.func + 'Controller';
}
})

but the code:

resolve: {
dummy: function ($stateParams){
var s = $couchPotatoProvider.resolveDependencies(['controllers/'+$stateParams.func+'Controller']);
return s;
}

does not work!

can I get any help ?
thanks a lot!

Add support for registerComponent

Angular released the angular.component in angular 1.5. This issue is a new feature request to support:
angular.module(<moduleName>).registerComponent(<componentName>, <componentConfig>);

What about the documentation?

The documentation is missing the sref in the internal links of each section of the guide, so is a potato couch's problem or just is because de documentation is in progress yet?. However cheroois by u project is AMAZING!, how can i involve in with him more ?. My target is make a huuuuugeeeee app, but i really not understand at all, how can i write it in a collaborative way?. I'm tried say: With a team in a huge app within a ui-router how this would configure dinamically the stateProvider when others developers comes to contribute with something new and then will write in a stateprovider path of router, manually?.

AngularUI Router

I was reading your comments on angular google group.

Is there any progress on making angular-couch-potato work with AngularUI Router?

super lazy : both html and js

hot do lazy load the js routes and its template html lazily and dynamically from server side.

this means that if the url[state] is not found locally. It will query the server lets say findRoute(name:'abc') which returns json, js of state, template html; which will be injected into crouch-potato and served to the client.

Lazy loaded directive is not applied on the controller's view

I've done the same installation as the sample one (ui-router). Everything seems good and works well except the my directives (which was good before I applied the lazy load). I don't understand why, but the controllers which has directives doesn't apply the modification/transformation in the view.
When I add the controller's directives into it's define() the network panel loads it properly but it does nothing and I don't receive error message :(
Could someone help me?

update: The invokeQueue also doesn't contain the mentioned directives :(

where is server.js?

Thanks for the great lib. If I follow the sample README.md i cant find the server.js?

cd into components-demo or ui-router-sample
node server.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.