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

Guidance on how to get Directives in #9

Closed
ghstahl opened this issue May 5, 2014 · 3 comments
Closed

Guidance on how to get Directives in #9

ghstahl opened this issue May 5, 2014 · 3 comments

Comments

@ghstahl
Copy link

ghstahl commented May 5, 2014

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

@laurelnaiad
Copy link
Owner

All types of components will work the same -- and for the purposes of couch potato anything you try to load via the resolveDependencies process needs to be defined somewhere. If you'd like me to help you figure out what's going on, you can post a plunker, and I'll take a look.

@ghstahl
Copy link
Author

ghstahl commented May 5, 2014

ghstahl @ gmail

http://plnkr.co/edit/LP8Jmi9eWWNYlMbhP7h2?p=preview

note: my javascript/angular skills are a working in progress, so I suspect
that this is a bonehead mistake on my part.

I am trying to build a dynamic form module, via Frankensteining together
the good works of others.

Thanks
Herb

On Sun, May 4, 2014 at 6:52 PM, Stu Salsbury notifications@github.comwrote:

All types of components will work the same -- and for the purposes of
couch potato anything you try to load via the resolveDependencies process
needs to be defined somewhere. If you'd like me to help you figure out
what's going on, you can post a plunker http://plnkr.co, and I'll take
a look.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-42154123
.

@laurelnaiad
Copy link
Owner

Wow, I didn't expect your entire app in the plunker... can you make a small pliunker that isolates what you're trying to do? I'll close this for now, as I just can't be diving into such a massive amount of code to help you out.

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

2 participants