-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
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 |
ghstahl @ gmail http://plnkr.co/edit/LP8Jmi9eWWNYlMbhP7h2?p=preview note: my javascript/angular skills are a working in progress, so I suspect I am trying to build a dynamic form module, via Frankensteining together Thanks On Sun, May 4, 2014 at 6:52 PM, Stu Salsbury notifications@github.comwrote:
|
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. |
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
The text was updated successfully, but these errors were encountered: