2
I have some functions in jquery that normally would be in a file . js even, but when I use Angular where should put, following good practices?
Example: I have a function that determines whether or not my Header is hidden depending on scroll size.
2
I have some functions in jquery that normally would be in a file . js even, but when I use Angular where should put, following good practices?
Example: I have a function that determines whether or not my Header is hidden depending on scroll size.
3
There’s nothing in the Angular specification that forces the location of a feature file with extra functionality.
If you’re not consuming anything from Angular and Angular doesn’t expect anything from you, leave the code aside anyway.
Browser other questions tagged javascript jquery angularjs
You are not signed in. Login or sign up in order to post.
Another thing, I’m consuming db so the correct thing would be to put my functions in Controller?
– Charles Presidente
@Charlespresident This will depend mainly on the way you are implementing the connection between your application and the bank, but in general terms resource accesses are centralized in services/Factories.
– OnoSendai