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

Wire up a mocked appDirectives.js #13

Open
jamigibbs opened this issue Nov 10, 2015 · 0 comments
Open

Wire up a mocked appDirectives.js #13

jamigibbs opened this issue Nov 10, 2015 · 0 comments

Comments

@jamigibbs
Copy link

I'm learning Angular so keep that in mind but it seems that the directives file should be mocked and wired up in the app already just as services and controllers are. For example:

// index.html
<script src="js/appDirectives.js"></script>

// appDirectives.js
angular.module('MainDirectives', []).directive('example', function(){

});

// app.js
'MainDirectives'
@jamigibbs jamigibbs changed the title Wire up a mocked appDirectives.js Wire up a mocked appDirectives.js Nov 10, 2015
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

1 participant