At least on first glance this seems like a bad idea. You would end up with an application that uses AngularJS, but doesn't look like other AngularJS applications. I don't recall any changes that were required to my HTML files when I upgraded from 1.0 to 1.2. I think the changes were all in my JavaScript code. The JavaScript changes required by 1.2 didn't take long to make.
On Thu, Feb 6, 2014 at 1:05 PM, AngularNutCase <[email protected]>wrote: > 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. > -- R. Mark Volkmann Object Computing, Inc. -- 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.
