A week ago I had not heard of Angular and now I have it doing all the 
things I need it to do to use it in my application - great.

BUT my application has about 100,000 lines of javascript and probably the 
same again with HTML. Currently the app uses Microsoft data binding with 
datasrc= and datafld=

So one thing I need to do is structure things very carefully. And I don't 
want to change 200,000 lines of code every time angular is updated.

Indeed one of the first examples of angular code I found during my "hello 
world journey" wouldn't work on my app because angular had been updated. 

So what I want to do is wrap up all of angular's functionality into a 
javascript class, and have all that in a separate js file. Then all my 
existing code can call my wrapper class, and when angular changes, only the 
wrapper class has to change.

We did it with jquery ok, but "Angular" is of course spread throughout your 
html and not just your javascript. And in jquery we could simply destroy 
the $ variable so noone can write code that accesses it except through our 
wrapper class.

Can anyone with more knowledge of Angular advise me if this is feasible ? 
The app has master pages which can host the ng-app and a controller. I 
wonder if all the rest of angular's functionality can be invoked from a 
$(document).ready and then the html object model is changed by angular from 
there ?

Any and all thoughts very welcome - thank you

Paul

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to