Hi all.  New to programming and Angular, and look forward to trying to 
contribute in the future.   Until now, I've only built simple applications 
that accept user input and use a repository to shove the input into the 
database.  Now, I have to manipulate some of the input before I can store 
it.  I'm asking users to give me a Youtube URL, and I've got to change it 
to the embed version using Regex and some replace code.  I found some good 
looking code here:  
http://stackoverflow.com/questions/15824642/convert-youtube-url-to-iframe-embed-code
  

Now, looking at my controller, services, and repository, none of what I 
have in those really looks like it would be a great place for logic like 
this to live.  I keep getting reminded about having skinny controllers, so 
would services then be the right place for something like this?   Thanks 
for any help!

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to