Following is the order of scripts I load <script src="~/.bin/node_modules/core-js/client/shim.js"></script>
<script src="/.bin/node_modules/zone.js/dist/zone.js"></script> <script src="/.bin/node_modules/reflect-metadata/Reflect.js"></script> <script src="/.bin/node_modules/rxjs/bundles/Rx.umd.js"></script> <script src="~/.bin/node_modules/@angular/core/bundles/core.umd.js"></script> <script src="~/.bin/node_modules/@angular/common/bundles/common.umd.js"></script> <script src="~/.bin/node_modules/@angular/compiler/bundles/compiler.umd.js"></script> <script src="~/.bin/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js"></script> <script src="~/.bin/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js"></script> <script src="~/.bin/node_modules/@angular/http/bundles/http.umd.js"></script> <script src="~/.bin/node_modules/@angular/router/bundles/router.umd.js"></script> Since I use plain javascript and shim.js I don't need polyfill. Please post a sample angular2 routing and navigation application for javascript. On Monday, July 25, 2016 at 7:01:09 PM UTC+5:30, Venkata Chakradhar wrote: > > Angular2 for plain javascript / es5 has been difficult for users to > understand routing and navigation concept. Style sheet shows deprecated > router https://angular.io/docs/js/latest/guide/cheatsheet.html , where as > typescript code for routing shows RouterConfig which is imported from > '@angular/router' but in angular2 libraries for plain javascript has > neither RouteConfig nor RouterConfig . when I used either > ng.router.RouteConfig or ng.router.RouterConfig result is undefined . When > I go further by Simple Configuration with [{ path:"value", > component:type/string }] I get observable errors thrown from zone.js and > EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot read property > 'of' of undefined from platform-browser.umd.js. If anyone knows routing and > navigation in plain javascript / es5 please post your code. > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.