| 
									
										
										
										
											2015-04-13 16:48:04 -07:00
										 |  |  | import * as angular from './angular2'; | 
					
						
							| 
									
										
										
										
											2015-05-04 17:57:28 -07:00
										 |  |  | // the router should have its own SFX bundle  | 
					
						
							|  |  |  | // But currently the module arithemtic 'angular2/router_sfx - angular2/angular2', | 
					
						
							|  |  |  | // is not support by system builder. | 
					
						
							|  |  |  | import * as router from './router'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | angular.router = router; | 
					
						
							| 
									
										
										
										
											2015-04-13 16:48:04 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | var _prevAngular = window.angular; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Calling noConflict will restore window.angular to its pre-angular loading state | 
					
						
							| 
									
										
										
										
											2015-05-04 17:57:28 -07:00
										 |  |  |  * and return the angular module object. | 
					
						
							| 
									
										
										
										
											2015-04-13 16:48:04 -07:00
										 |  |  |  */ | 
					
						
							|  |  |  | angular.noConflict = function() { | 
					
						
							|  |  |  |   window.angular = _prevAngular; | 
					
						
							|  |  |  |   return angular; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | window.angular = angular; |