├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── banner ├── bower.json ├── build ├── angular-routing.js ├── angular-routing.legacy.js ├── angular-routing.legacy.min.js └── angular-routing.min.js ├── dev └── files.js ├── gh-pages ├── assets │ ├── bootstrap.config.json │ ├── glyphs │ │ └── icomoon │ │ │ ├── Read Me.txt │ │ │ ├── demo-files │ │ │ ├── demo.css │ │ │ └── demo.js │ │ │ ├── demo.html │ │ │ ├── fonts │ │ │ ├── icomoon.eot │ │ │ ├── icomoon.svg │ │ │ ├── icomoon.ttf │ │ │ └── icomoon.woff │ │ │ ├── selection.json │ │ │ └── style.css │ ├── images │ │ ├── diagram_01.svg │ │ ├── diagram_02.svg │ │ ├── diagram_03.svg │ │ ├── logo.svg │ │ └── logo2.svg │ ├── scripts │ │ ├── angular-routing │ │ │ ├── angular-routing.d.ts │ │ │ └── impl │ │ │ │ ├── angular-routing.js │ │ │ │ └── angular-routing.min.js │ │ ├── angular │ │ │ ├── angular-cookies.d.ts │ │ │ ├── angular-mocks.d.ts │ │ │ ├── angular-resource.d.ts │ │ │ ├── angular.d.ts │ │ │ └── impl │ │ │ │ ├── angular-animate.js │ │ │ │ ├── angular-animate.min.js │ │ │ │ ├── angular-cookies.js │ │ │ │ ├── angular-cookies.min.js │ │ │ │ ├── angular-loader.js │ │ │ │ ├── angular-loader.min.js │ │ │ │ ├── angular-mocks.js │ │ │ │ ├── angular-resource.js │ │ │ │ ├── angular-resource.min.js │ │ │ │ ├── angular-route.js │ │ │ │ ├── angular-route.min.js │ │ │ │ ├── angular-sanitize.js │ │ │ │ ├── angular-sanitize.min.js │ │ │ │ ├── angular-scenario.js │ │ │ │ ├── angular-touch.js │ │ │ │ ├── angular-touch.min.js │ │ │ │ ├── angular.js │ │ │ │ ├── angular.min.js │ │ │ │ ├── docs │ │ │ │ ├── .htaccess │ │ │ │ ├── appcache-offline.manifest │ │ │ │ ├── appcache.manifest │ │ │ │ ├── css │ │ │ │ │ ├── bootstrap.min.css │ │ │ │ │ ├── doc_widgets.css │ │ │ │ │ ├── docs.css │ │ │ │ │ └── font-awesome.css │ │ │ │ ├── docs-keywords.js │ │ │ │ ├── docs-scenario.html │ │ │ │ ├── docs-scenario.js │ │ │ │ ├── favicon.ico │ │ │ │ ├── font │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ ├── fontawesome-webfont.svg │ │ │ │ │ ├── fontawesome-webfont.svgz │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ └── fontawesome-webfont.woff │ │ │ │ ├── img │ │ │ │ │ ├── AngularJS-small.png │ │ │ │ │ ├── One_Way_Data_Binding.png │ │ │ │ │ ├── Two_Way_Data_Binding.png │ │ │ │ │ ├── angular_parts.png │ │ │ │ │ ├── bullet.png │ │ │ │ │ ├── form_data_flow.png │ │ │ │ │ ├── glyphicons-halflings-white.png │ │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ │ ├── guide │ │ │ │ │ │ ├── about_model_final.png │ │ │ │ │ │ ├── about_view_final.png │ │ │ │ │ │ ├── concepts-controller.png │ │ │ │ │ │ ├── concepts-directive.png │ │ │ │ │ │ ├── concepts-model.png │ │ │ │ │ │ ├── concepts-module-injector.png │ │ │ │ │ │ ├── concepts-runtime.png │ │ │ │ │ │ ├── concepts-scope.png │ │ │ │ │ │ ├── concepts-startup.png │ │ │ │ │ │ ├── concepts-view.png │ │ │ │ │ │ ├── di_sequence_final.png │ │ │ │ │ │ ├── dom_scope_final.png │ │ │ │ │ │ ├── hashbang_vs_regular_url.jpg │ │ │ │ │ │ ├── scenario_runner.png │ │ │ │ │ │ └── simple_scope_final.png │ │ │ │ │ ├── helloworld.png │ │ │ │ │ ├── helloworld_2way.png │ │ │ │ │ └── tutorial │ │ │ │ │ │ ├── catalog_screen.png │ │ │ │ │ │ ├── tutorial_00.png │ │ │ │ │ │ ├── tutorial_00_final.png │ │ │ │ │ │ ├── tutorial_02.png │ │ │ │ │ │ ├── tutorial_03.png │ │ │ │ │ │ ├── tutorial_04.png │ │ │ │ │ │ ├── tutorial_07_final.png │ │ │ │ │ │ ├── tutorial_08-09_final.png │ │ │ │ │ │ ├── tutorial_10-11_final.png │ │ │ │ │ │ └── xhr_service_final.png │ │ │ │ ├── index-debug.html │ │ │ │ ├── index-jq-debug.html │ │ │ │ ├── index-jq-nocache.html │ │ │ │ ├── index-jq.html │ │ │ │ ├── index-nocache.html │ │ │ │ ├── index.html │ │ │ │ ├── js │ │ │ │ │ ├── docs.js │ │ │ │ │ ├── jquery.js │ │ │ │ │ └── jquery.min.js │ │ │ │ ├── offline.html │ │ │ │ ├── partials │ │ │ │ │ ├── api │ │ │ │ │ │ ├── AUTO.$injector.html │ │ │ │ │ │ ├── AUTO.$provide.html │ │ │ │ │ │ ├── AUTO.html │ │ │ │ │ │ ├── angular.IModule.html │ │ │ │ │ │ ├── angular.bind.html │ │ │ │ │ │ ├── angular.bootstrap.html │ │ │ │ │ │ ├── angular.copy.html │ │ │ │ │ │ ├── angular.element.html │ │ │ │ │ │ ├── angular.equals.html │ │ │ │ │ │ ├── angular.extend.html │ │ │ │ │ │ ├── angular.forEach.html │ │ │ │ │ │ ├── angular.fromJson.html │ │ │ │ │ │ ├── angular.identity.html │ │ │ │ │ │ ├── angular.injector.html │ │ │ │ │ │ ├── angular.isArray.html │ │ │ │ │ │ ├── angular.isDate.html │ │ │ │ │ │ ├── angular.isDefined.html │ │ │ │ │ │ ├── angular.isElement.html │ │ │ │ │ │ ├── angular.isFunction.html │ │ │ │ │ │ ├── angular.isNumber.html │ │ │ │ │ │ ├── angular.isObject.html │ │ │ │ │ │ ├── angular.isString.html │ │ │ │ │ │ ├── angular.isUndefined.html │ │ │ │ │ │ ├── angular.lowercase.html │ │ │ │ │ │ ├── angular.mock.TzDate.html │ │ │ │ │ │ ├── angular.mock.debug.html │ │ │ │ │ │ ├── angular.mock.html │ │ │ │ │ │ ├── angular.mock.inject.html │ │ │ │ │ │ ├── angular.mock.module.html │ │ │ │ │ │ ├── angular.module.html │ │ │ │ │ │ ├── angular.noop.html │ │ │ │ │ │ ├── angular.toJson.html │ │ │ │ │ │ ├── angular.uppercase.html │ │ │ │ │ │ ├── angular.version.html │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── ng.$anchorScroll.html │ │ │ │ │ │ ├── ng.$cacheFactory.html │ │ │ │ │ │ ├── ng.$compile.directive.Attributes.html │ │ │ │ │ │ ├── ng.$compile.html │ │ │ │ │ │ ├── ng.$compileProvider.html │ │ │ │ │ │ ├── ng.$controller.html │ │ │ │ │ │ ├── ng.$controllerProvider.html │ │ │ │ │ │ ├── ng.$document.html │ │ │ │ │ │ ├── ng.$exceptionHandler.html │ │ │ │ │ │ ├── ng.$filter.html │ │ │ │ │ │ ├── ng.$filterProvider.html │ │ │ │ │ │ ├── ng.$http.html │ │ │ │ │ │ ├── ng.$httpBackend.html │ │ │ │ │ │ ├── ng.$interpolate.html │ │ │ │ │ │ ├── ng.$interpolateProvider.html │ │ │ │ │ │ ├── ng.$locale.html │ │ │ │ │ │ ├── ng.$location.html │ │ │ │ │ │ ├── ng.$locationProvider.html │ │ │ │ │ │ ├── ng.$log.html │ │ │ │ │ │ ├── ng.$parse.html │ │ │ │ │ │ ├── ng.$q.html │ │ │ │ │ │ ├── ng.$rootElement.html │ │ │ │ │ │ ├── ng.$rootScope.Scope.html │ │ │ │ │ │ ├── ng.$rootScope.html │ │ │ │ │ │ ├── ng.$rootScopeProvider.html │ │ │ │ │ │ ├── ng.$route.html │ │ │ │ │ │ ├── ng.$routeParams.html │ │ │ │ │ │ ├── ng.$routeProvider.html │ │ │ │ │ │ ├── ng.$templateCache.html │ │ │ │ │ │ ├── ng.$timeout.html │ │ │ │ │ │ ├── ng.$window.html │ │ │ │ │ │ ├── ng.directive_a.html │ │ │ │ │ │ ├── ng.directive_form.FormController.html │ │ │ │ │ │ ├── ng.directive_form.html │ │ │ │ │ │ ├── ng.directive_input.checkbox.html │ │ │ │ │ │ ├── ng.directive_input.email.html │ │ │ │ │ │ ├── ng.directive_input.html │ │ │ │ │ │ ├── ng.directive_input.number.html │ │ │ │ │ │ ├── ng.directive_input.radio.html │ │ │ │ │ │ ├── ng.directive_input.text.html │ │ │ │ │ │ ├── ng.directive_input.url.html │ │ │ │ │ │ ├── ng.directive_ngApp.html │ │ │ │ │ │ ├── ng.directive_ngBind.html │ │ │ │ │ │ ├── ng.directive_ngBindHtmlUnsafe.html │ │ │ │ │ │ ├── ng.directive_ngBindTemplate.html │ │ │ │ │ │ ├── ng.directive_ngChange.html │ │ │ │ │ │ ├── ng.directive_ngChecked.html │ │ │ │ │ │ ├── ng.directive_ngClass.html │ │ │ │ │ │ ├── ng.directive_ngClassEven.html │ │ │ │ │ │ ├── ng.directive_ngClassOdd.html │ │ │ │ │ │ ├── ng.directive_ngClick.html │ │ │ │ │ │ ├── ng.directive_ngCloak.html │ │ │ │ │ │ ├── ng.directive_ngController.html │ │ │ │ │ │ ├── ng.directive_ngCsp.html │ │ │ │ │ │ ├── ng.directive_ngDblclick.html │ │ │ │ │ │ ├── ng.directive_ngDisabled.html │ │ │ │ │ │ ├── ng.directive_ngForm.html │ │ │ │ │ │ ├── ng.directive_ngHide.html │ │ │ │ │ │ ├── ng.directive_ngHref.html │ │ │ │ │ │ ├── ng.directive_ngInclude.html │ │ │ │ │ │ ├── ng.directive_ngInit.html │ │ │ │ │ │ ├── ng.directive_ngList.html │ │ │ │ │ │ ├── ng.directive_ngModel.NgModelController.html │ │ │ │ │ │ ├── ng.directive_ngModel.html │ │ │ │ │ │ ├── ng.directive_ngMousedown.html │ │ │ │ │ │ ├── ng.directive_ngMouseenter.html │ │ │ │ │ │ ├── ng.directive_ngMouseleave.html │ │ │ │ │ │ ├── ng.directive_ngMousemove.html │ │ │ │ │ │ ├── ng.directive_ngMouseover.html │ │ │ │ │ │ ├── ng.directive_ngMouseup.html │ │ │ │ │ │ ├── ng.directive_ngMultiple.html │ │ │ │ │ │ ├── ng.directive_ngNonBindable.html │ │ │ │ │ │ ├── ng.directive_ngPluralize.html │ │ │ │ │ │ ├── ng.directive_ngReadonly.html │ │ │ │ │ │ ├── ng.directive_ngRepeat.html │ │ │ │ │ │ ├── ng.directive_ngSelected.html │ │ │ │ │ │ ├── ng.directive_ngShow.html │ │ │ │ │ │ ├── ng.directive_ngSrc.html │ │ │ │ │ │ ├── ng.directive_ngStyle.html │ │ │ │ │ │ ├── ng.directive_ngSubmit.html │ │ │ │ │ │ ├── ng.directive_ngSwitch.html │ │ │ │ │ │ ├── ng.directive_ngTransclude.html │ │ │ │ │ │ ├── ng.directive_ngView.html │ │ │ │ │ │ ├── ng.directive_script.html │ │ │ │ │ │ ├── ng.directive_select.html │ │ │ │ │ │ ├── ng.directive_textarea.html │ │ │ │ │ │ ├── ng.filter_currency.html │ │ │ │ │ │ ├── ng.filter_date.html │ │ │ │ │ │ ├── ng.filter_filter.html │ │ │ │ │ │ ├── ng.filter_json.html │ │ │ │ │ │ ├── ng.filter_limitTo.html │ │ │ │ │ │ ├── ng.filter_lowercase.html │ │ │ │ │ │ ├── ng.filter_number.html │ │ │ │ │ │ ├── ng.filter_orderBy.html │ │ │ │ │ │ ├── ng.filter_uppercase.html │ │ │ │ │ │ ├── ng.html │ │ │ │ │ │ ├── ngCookies.$cookieStore.html │ │ │ │ │ │ ├── ngCookies.$cookies.html │ │ │ │ │ │ ├── ngCookies.html │ │ │ │ │ │ ├── ngMock.$exceptionHandler.html │ │ │ │ │ │ ├── ngMock.$exceptionHandlerProvider.html │ │ │ │ │ │ ├── ngMock.$httpBackend.html │ │ │ │ │ │ ├── ngMock.$log.html │ │ │ │ │ │ ├── ngMock.$timeout.html │ │ │ │ │ │ ├── ngMock.html │ │ │ │ │ │ ├── ngMockE2E.$httpBackend.html │ │ │ │ │ │ ├── ngMockE2E.html │ │ │ │ │ │ ├── ngResource.$resource.html │ │ │ │ │ │ ├── ngResource.html │ │ │ │ │ │ ├── ngSanitize.$sanitize.html │ │ │ │ │ │ ├── ngSanitize.directive_ngBindHtml.html │ │ │ │ │ │ ├── ngSanitize.filter_linky.html │ │ │ │ │ │ └── ngSanitize.html │ │ │ │ │ ├── cookbook │ │ │ │ │ │ ├── advancedform.html │ │ │ │ │ │ ├── buzz.html │ │ │ │ │ │ ├── deeplinking.html │ │ │ │ │ │ ├── form.html │ │ │ │ │ │ ├── helloworld.html │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ └── mvc.html │ │ │ │ │ ├── guide │ │ │ │ │ │ ├── bootstrap.html │ │ │ │ │ │ ├── compiler.html │ │ │ │ │ │ ├── concepts.html │ │ │ │ │ │ ├── dev_guide.e2e-testing.html │ │ │ │ │ │ ├── dev_guide.mvc.html │ │ │ │ │ │ ├── dev_guide.mvc.understanding_controller.html │ │ │ │ │ │ ├── dev_guide.mvc.understanding_model.html │ │ │ │ │ │ ├── dev_guide.mvc.understanding_view.html │ │ │ │ │ │ ├── dev_guide.services.$location.html │ │ │ │ │ │ ├── dev_guide.services.creating_services.html │ │ │ │ │ │ ├── dev_guide.services.html │ │ │ │ │ │ ├── dev_guide.services.injecting_controllers.html │ │ │ │ │ │ ├── dev_guide.services.managing_dependencies.html │ │ │ │ │ │ ├── dev_guide.services.testing_services.html │ │ │ │ │ │ ├── dev_guide.services.understanding_services.html │ │ │ │ │ │ ├── dev_guide.templates.css-styling.html │ │ │ │ │ │ ├── dev_guide.templates.databinding.html │ │ │ │ │ │ ├── dev_guide.templates.filters.creating_filters.html │ │ │ │ │ │ ├── dev_guide.templates.filters.html │ │ │ │ │ │ ├── dev_guide.templates.filters.using_filters.html │ │ │ │ │ │ ├── dev_guide.templates.html │ │ │ │ │ │ ├── dev_guide.unit-testing.html │ │ │ │ │ │ ├── di.html │ │ │ │ │ │ ├── directive.html │ │ │ │ │ │ ├── expression.html │ │ │ │ │ │ ├── forms.html │ │ │ │ │ │ ├── i18n.html │ │ │ │ │ │ ├── ie.html │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── introduction.html │ │ │ │ │ │ ├── module.html │ │ │ │ │ │ ├── overview.html │ │ │ │ │ │ ├── scope.html │ │ │ │ │ │ └── type.html │ │ │ │ │ ├── misc │ │ │ │ │ │ ├── contribute.html │ │ │ │ │ │ ├── downloading.html │ │ │ │ │ │ ├── faq.html │ │ │ │ │ │ └── started.html │ │ │ │ │ └── tutorial │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── step_00.html │ │ │ │ │ │ ├── step_01.html │ │ │ │ │ │ ├── step_02.html │ │ │ │ │ │ ├── step_03.html │ │ │ │ │ │ ├── step_04.html │ │ │ │ │ │ ├── step_05.html │ │ │ │ │ │ ├── step_06.html │ │ │ │ │ │ ├── step_07.html │ │ │ │ │ │ ├── step_08.html │ │ │ │ │ │ ├── step_09.html │ │ │ │ │ │ ├── step_10.html │ │ │ │ │ │ ├── step_11.html │ │ │ │ │ │ └── the_end.html │ │ │ │ ├── robots.txt │ │ │ │ └── sitemap.xml │ │ │ │ └── version.txt │ │ ├── assets.d.ts │ │ ├── bootstrap │ │ │ └── impl │ │ │ │ ├── bootstrap.js │ │ │ │ └── bootstrap.min.js │ │ ├── jquery │ │ │ ├── impl │ │ │ │ └── jquery-2.0.3.js │ │ │ └── jquery.d.ts │ │ ├── modenizr │ │ │ └── impl │ │ │ │ └── modernizr-2.6.2-respond-1.1.0.min.js │ │ └── syntaxhighlight │ │ │ ├── impl │ │ │ ├── XRegExp.js │ │ │ ├── shAutoloader.js │ │ │ ├── shBrushAS3.js │ │ │ ├── shBrushAppleScript.js │ │ │ ├── shBrushBash.js │ │ │ ├── shBrushCSharp.js │ │ │ ├── shBrushClojure.js │ │ │ ├── shBrushColdFusion.js │ │ │ ├── shBrushCpp.js │ │ │ ├── shBrushCss.js │ │ │ ├── shBrushDelphi.js │ │ │ ├── shBrushDiff.js │ │ │ ├── shBrushErlang.js │ │ │ ├── shBrushFSharp.js │ │ │ ├── shBrushGroovy.js │ │ │ ├── shBrushJScript.js │ │ │ ├── shBrushJava.js │ │ │ ├── shBrushJavaFX.js │ │ │ ├── shBrushLatex.js │ │ │ ├── shBrushMatlabKey.js │ │ │ ├── shBrushObjC.js │ │ │ ├── shBrushPerl.js │ │ │ ├── shBrushPhp.js │ │ │ ├── shBrushPlain.js │ │ │ ├── shBrushPowerShell.js │ │ │ ├── shBrushPython.js │ │ │ ├── shBrushR.js │ │ │ ├── shBrushRuby.js │ │ │ ├── shBrushSass.js │ │ │ ├── shBrushScala.js │ │ │ ├── shBrushSql.js │ │ │ ├── shBrushVb.js │ │ │ ├── shBrushXml.js │ │ │ ├── shCore.full.js │ │ │ ├── shCore.js │ │ │ └── shLegacy.js │ │ │ └── shCore.d.ts │ └── styles │ │ ├── bootstrap │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ └── bootstrap.min.css │ │ └── normalize │ │ └── normalize.css ├── docs │ ├── assets │ │ └── $state │ │ │ ├── state.provider.structure.png │ │ │ └── state.provider.structure.svg │ ├── docs-setup.d.ts │ ├── docs-setup.js │ └── partials │ │ ├── dotjem.routing.$resolve.html │ │ ├── dotjem.routing.$route.html │ │ ├── dotjem.routing.$routeProvider.html │ │ ├── dotjem.routing.$scroll.html │ │ ├── dotjem.routing.$state.html │ │ ├── dotjem.routing.$stateProvider.html │ │ ├── dotjem.routing.$stateTransition.html │ │ ├── dotjem.routing.$stateTransitionProvider.html │ │ ├── dotjem.routing.$template.html │ │ ├── dotjem.routing.$view.html │ │ ├── dotjem.routing.directive.id.html │ │ ├── dotjem.routing.directive.jemAnchor.html │ │ ├── dotjem.routing.directive.jemView.html │ │ ├── dotjem.routing.directive.sref.html │ │ ├── dotjem.routing.html │ │ └── dotjem.routing.type.transaction.html ├── gruntfile.js ├── index.html ├── package.json ├── samples │ ├── basic │ │ ├── about.html │ │ ├── about.module.js │ │ ├── contact.html │ │ ├── contact.module.js │ │ ├── demo.js │ │ ├── home.html │ │ ├── home.module.js │ │ ├── index.html │ │ └── style.css │ ├── concepts │ │ ├── routes │ │ │ ├── about.html │ │ │ ├── contact.html │ │ │ ├── demo.js │ │ │ ├── home.html │ │ │ ├── index.html │ │ │ └── style.css │ │ ├── states │ │ │ ├── about.html │ │ │ ├── contact.html │ │ │ ├── demo.js │ │ │ ├── home.html │ │ │ ├── index.html │ │ │ └── style.css │ │ ├── transitions │ │ │ ├── demo.js │ │ │ ├── index.html │ │ │ └── style.css │ │ └── views │ │ │ ├── about.html │ │ │ ├── contact.html │ │ │ ├── controllers.js │ │ │ ├── demo.about.js │ │ │ ├── demo.contact.js │ │ │ ├── demo.js │ │ │ ├── home.html │ │ │ ├── index.html │ │ │ ├── sticky.html │ │ │ └── style.css │ └── tutorials │ │ └── step1 │ │ ├── 001 │ │ └── home.html │ │ ├── 002 │ │ └── application.js │ │ ├── 003 │ │ └── application.js │ │ ├── final │ │ ├── about.html │ │ ├── application.js │ │ ├── contact.html │ │ ├── home.html │ │ ├── index.html │ │ └── style.css │ │ └── init │ │ ├── application.js │ │ ├── index.html │ │ └── style.css ├── scripts │ ├── _references.d.ts │ ├── common │ │ ├── enums.js │ │ └── enums.ts │ ├── directives │ │ ├── dxSample.js │ │ ├── dxSample.ts │ │ ├── dxSyntax.js │ │ └── dxSyntax.ts │ ├── dotjem.docs.ts │ ├── dotjem.ts │ └── services │ │ ├── plunkr.js │ │ ├── plunkr.ts │ │ ├── scriptLoader.js │ │ ├── scriptLoader.ts │ │ ├── syntax.js │ │ └── syntax.ts ├── styles │ ├── dxdocs.css │ ├── dxsample.css │ ├── main.css │ └── syntaxhighlighter.css └── templates │ ├── concepts │ ├── overview.html │ ├── routes.html │ ├── states.html │ ├── transitions.html │ └── views.html │ ├── directives │ └── dxSampleTemplate.html │ ├── faq.html │ ├── home.html │ ├── ngdocs.html │ └── tutorials │ ├── step0.html │ ├── step1.starting.html │ ├── step2.views.html │ ├── step3.controller.html │ ├── step4.nestedstates.html │ ├── step5.routeparams.html │ └── step6.transitions.html ├── grunt-start.bat ├── gruntfile.js ├── index.html ├── lib ├── angular-tree │ └── impl │ │ └── angular-tree.js ├── angular │ ├── angular-1.0.d.ts │ ├── angular-cookies-1.0.d.ts │ ├── angular-cookies.d.ts │ ├── angular-mocks-1.0.d.ts │ ├── angular-mocks-tests.ts │ ├── angular-mocks.d.ts │ ├── angular-resource-1.0.d.ts │ ├── angular-resource-tests.ts │ ├── angular-resource.d.ts │ ├── angular-route-tests.ts │ ├── angular-route.d.ts │ ├── angular-sanitize-1.0.d.ts │ ├── angular-sanitize-tests.ts │ ├── angular-sanitize.d.ts │ ├── angular-scenario.d.ts │ ├── angular-tests.ts │ ├── angular.d.ts │ └── impl │ │ ├── angular-animate.js │ │ ├── angular-bootstrap-prettify.js │ │ ├── angular-bootstrap.js │ │ ├── angular-cookies.js │ │ ├── angular-loader.js │ │ ├── angular-messages.js │ │ ├── angular-mocks.js │ │ ├── angular-resource.js │ │ ├── angular-route.js │ │ ├── angular-sanitize.js │ │ ├── angular-scenario.js │ │ ├── angular-touch.js │ │ └── angular.js ├── jasmine │ ├── jasmine-1.3.d.ts │ └── jasmine.d.ts ├── jquery │ ├── impl │ │ ├── jquery-1.9.1.js │ │ └── jquery-1.9.1.min.js │ └── jquery.d.ts └── ui-bootstrap │ └── impl │ └── ui-bootstrap-tpls-0.2.0.min.js ├── package.json ├── resources.md ├── router.csproj ├── router.sln ├── src ├── common.d.ts ├── common.ts ├── directives │ ├── jemAnchor.d.ts │ ├── jemAnchor.ts │ ├── jemLink.d.ts │ ├── jemLink.ts │ ├── jemView.d.ts │ └── jemView.ts ├── filters │ ├── isActiveState.ts │ └── isCurrentState.ts ├── inject.d.ts ├── inject.ts ├── interfaces.d.ts ├── interfaces │ └── state.d.ts ├── legacy │ ├── prefix │ ├── suffix │ ├── templateDecorator.d.ts │ └── templateDecorator.ts ├── pipeline.d.ts ├── pipeline.ts ├── prefix ├── refs.d.ts ├── resolve.d.ts ├── resolve.ts ├── route.d.ts ├── route.ts ├── scroll.d.ts ├── scroll.ts ├── state.d.ts ├── state.ts ├── state │ ├── refs.d.ts │ ├── state.d.ts │ ├── state.ts │ ├── stateBrowser.d.ts │ ├── stateBrowser.ts │ ├── stateComparer.d.ts │ ├── stateComparer.ts │ ├── stateFactory.d.ts │ ├── stateFactory.ts │ ├── stateRules.d.ts │ ├── stateRules.ts │ ├── stateUrlBuilder.d.ts │ └── stateUrlBuilder.ts ├── stateTransition.d.ts ├── stateTransition.ts ├── suffix ├── template.d.ts ├── template.ts ├── view.d.ts └── view.ts ├── test-dev-full-jquery-config.js ├── test-dev-jqlite-config.js ├── test-dev-jquery-config.js ├── test-grunt-jqlite-config.js ├── test-grunt-jquery-config.js ├── test-start.bat ├── test ├── legacy │ └── routeLegacySpec.ts ├── routeSpec.ts ├── scrollSpec.ts ├── state │ ├── stateBrowserSpec.ts │ ├── stateComparerSpec.ts │ ├── stateFactorySpec.ts │ ├── stateRulesSpec.ts │ ├── stateSpec.ts │ └── stateUrlBuilderSpec.ts ├── stateSpec.ts ├── stateTransitionSpec.ts ├── templateSpec.ts ├── testcommon.ts ├── util │ └── matchers.ts └── viewSpec.ts ├── tslint.json └── version.yaml /.gitignore: -------------------------------------------------------------------------------- 1 | # Don't include generated js files. 2 | src/**/*.js 3 | src/*.js 4 | 5 | build/src/**/*.* 6 | build/test/**/*.* 7 | build/gh-pages/**/*.* 8 | 9 | test/**/*.js 10 | test/*.js 11 | 12 | temp/*.* 13 | temp/**/*.* 14 | 15 | gh-pages/scripts/*.js 16 | *.js.map 17 | 18 | # Local node modules 'yuk' 19 | node_modules 20 | 21 | # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # mstest test results 26 | TestResults 27 | 28 | ## Ignore Visual Studio temporary files, build results, and 29 | ## files generated by popular Visual Studio add-ons. 30 | 31 | # User-specific files 32 | *.suo 33 | *.user 34 | *.sln.docstates 35 | 36 | # Build results 37 | [Dd]ebug/ 38 | [Rr]elease/ 39 | x64/ 40 | *_i.c 41 | *_p.c 42 | *.ilk 43 | *.meta 44 | *.obj 45 | *.pch 46 | *.pdb 47 | *.pgc 48 | *.pgd 49 | *.rsp 50 | *.sbr 51 | *.tlb 52 | *.tli 53 | *.tlh 54 | *.tmp 55 | *.log 56 | *.vspscc 57 | *.vssscc 58 | 59 | # ReSharper is a .NET coding add-in 60 | _ReSharper* 61 | 62 | # NuGet Packages Directory 63 | packages 64 | 65 | # Others 66 | [Bb]in 67 | [Oo]bj 68 | sql 69 | TestResults 70 | [Tt]est[Rr]esult* 71 | *.Cache 72 | ClientBin 73 | [Ss]tyle[Cc]op.* 74 | ~$* 75 | *.dbmdl 76 | Generated_Code #added for RIA/Silverlight projects 77 | 78 | # Backup & report files from converting an old project file to a newer 79 | # Visual Studio version. Backup files are not needed, because we have git ;-) 80 | _UpgradeReport_Files/ 81 | Backup*/ 82 | UpgradeLog*.XML 83 | 84 | #webstorm 85 | .idea -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | install: 6 | - npm install 7 | - npm install -g typescript 8 | - npm install -g grunt-cli 9 | before_script: 10 | - export DISPLAY=:99.0 11 | - sh -e /etc/init.d/xvfb start 12 | - ./nodeserver.sh > /dev/null & 13 | script: 14 | - grunt 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2013-2015 dotJEM (Jens Melgaard) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /banner: -------------------------------------------------------------------------------- 1 | /** 2 | * @license dotJEM Angular Routing 3 | * (c) 2012-2014 dotJEM (Jens Melgaard) 4 | * License: MIT 5 | * 6 | * @module angular-routing 7 | */ 8 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dotjem-angular-routing", 3 | "main": [ "build/angular-routing.js" ], 4 | "dependencies": { 5 | "angular": ">= 1.2" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /build/angular-routing.legacy.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license dotJEM Angular Routing 3 | * (c) 2012-2014 dotJEM (Jens Melgaard) 4 | * License: MIT 5 | * 6 | * @module angular-routing 7 | */ 8 | !function(){"use strict";angular.module("dotjem.routing.legacy",["dotjem.routing"]).config(["$routeProvider",function(a){a.decorate("templateDecorator",["$q","$injector","$templateCache","$http",function(a,b,c,d){var e,f=this,g=[],h=[];return angular.forEach(f.resolve||{},function(a,c){h.push(c),g.push(angular.isString(a)?b.get(a):b.invoke(a))}),angular.isDefined(e=f.template)?angular.isFunction(e)&&(e=e(f.params)):angular.isDefined(e=f.templateUrl)&&(angular.isFunction(e)&&(e=e(f.params)),angular.isDefined(e)&&(f.loadedTemplateUrl=e,e=d.get(e,{cache:c}).then(function(a){return a.data}))),angular.isDefined(e)&&(h.push("$template"),g.push(e)),a.all(g).then(function(a){var b={};return angular.forEach(a,function(a,c){b[h[c]]=a}),b}).then(function(a){f.locals=a})}])}])}(window,document); -------------------------------------------------------------------------------- /dev/files.js: -------------------------------------------------------------------------------- 1 | if (exports) { 2 | var files = { 3 | 'src': [ 4 | 'src/prefix', 5 | 'build/src/common.js', 6 | 'build/src/route.js', 7 | 'build/src/pipeline.js', 8 | 'build/src/stateTransition.js', 9 | 'build/src/state.js', 10 | 'build/src/resolve.js', 11 | 'build/src/template.js', 12 | 'build/src/view.js', 13 | 'build/src/scroll.js', 14 | 'build/src/inject.js', 15 | 'build/src/state/state.js', 16 | 'build/src/state/stateBrowser.js', 17 | 'build/src/state/stateComparer.js', 18 | 'build/src/state/stateFactory.js', 19 | 'build/src/state/stateRules.js', 20 | 'build/src/state/stateUrlBuilder.js', 21 | 'build/src/directives/jemView.js', 22 | 'build/src/directives/jemAnchor.js', 23 | 'build/src/directives/jemLink.js', 24 | 'build/src/filters/isActiveState.js', 25 | 'build/src/filters/isCurrentState.js', 26 | 'src/suffix' 27 | ], 28 | 'legacy': [ 29 | 'src/legacy/prefix', 30 | 'build/src/legacy/templateDecorator.js', 31 | 'src/legacy/suffix' 32 | ] 33 | }; 34 | exports.files = files; 35 | } -------------------------------------------------------------------------------- /gh-pages/assets/glyphs/icomoon/Read Me.txt: -------------------------------------------------------------------------------- 1 | Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures. 2 | 3 | You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects. 4 | 5 | You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu > Manage Projects) to retrieve your icon selection. 6 | -------------------------------------------------------------------------------- /gh-pages/assets/glyphs/icomoon/demo-files/demo.js: -------------------------------------------------------------------------------- 1 | if (!('boxShadow' in document.body.style)) { 2 | document.body.setAttribute('class', 'noBoxShadow'); 3 | } 4 | 5 | document.body.addEventListener("click", function(e) { 6 | var target = e.target; 7 | if (target.tagName === "INPUT" && 8 | target.getAttribute('class').indexOf('liga') === -1) { 9 | target.select(); 10 | } 11 | }); 12 | 13 | (function() { 14 | var fontSize = document.getElementById('fontSize'), 15 | testDrive = document.getElementById('testDrive'), 16 | testText = document.getElementById('testText'); 17 | function updateTest() { 18 | testDrive.innerHTML = testText.value || String.fromCharCode(160); 19 | if (window.icomoonLiga) { 20 | window.icomoonLiga(testDrive); 21 | } 22 | } 23 | function updateSize() { 24 | testDrive.style.fontSize = fontSize.value + 'px'; 25 | } 26 | fontSize.addEventListener('change', updateSize, false); 27 | testText.addEventListener('input', updateTest, false); 28 | testText.addEventListener('change', updateTest, false); 29 | updateSize(); 30 | }()); 31 | -------------------------------------------------------------------------------- /gh-pages/assets/glyphs/icomoon/fonts/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/glyphs/icomoon/fonts/icomoon.eot -------------------------------------------------------------------------------- /gh-pages/assets/glyphs/icomoon/fonts/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/glyphs/icomoon/fonts/icomoon.ttf -------------------------------------------------------------------------------- /gh-pages/assets/glyphs/icomoon/fonts/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/glyphs/icomoon/fonts/icomoon.woff -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/angular-cookies.d.ts: -------------------------------------------------------------------------------- 1 | /// Type definitions for Angular JS 1.2 (ngCookies module) 2 | // Project: http://angularjs.org 3 | // Definitions by: Diego Vilar 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | 7 | /// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // ngCookies module (angular-cookies.js) 11 | /////////////////////////////////////////////////////////////////////////////// 12 | declare module ng.cookies { 13 | 14 | /////////////////////////////////////////////////////////////////////////// 15 | // CookieService 16 | // see http://docs.angularjs.org/api/ngCookies.$cookies 17 | /////////////////////////////////////////////////////////////////////////// 18 | interface ICookiesService {} 19 | 20 | /////////////////////////////////////////////////////////////////////////// 21 | // CookieStoreService 22 | // see http://docs.angularjs.org/api/ngCookies.$cookieStore 23 | /////////////////////////////////////////////////////////////////////////// 24 | interface ICookieStoreService { 25 | get(key: string): any; 26 | put(key: string, value: any): void; 27 | remove(key: string): void; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/angular-cookies.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | AngularJS v1.2.0 3 | (c) 2010-2012 Google, Inc. http://angularjs.org 4 | License: MIT 5 | */ 6 | (function(p,f,n){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,b){var c={},g={},h,k=!1,l=f.copy,m=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&&(h=a,l(a,g),l(a,c),k&&d.$apply())})();k=!0;d.$watch(function(){var a,e,d;for(a in g)m(c[a])&&b.cookies(a,n);for(a in c)(e=c[a],f.isString(e))?e!==g[a]&&(b.cookies(a,e),d=!0):f.isDefined(g[a])?c[a]=g[a]:delete c[a];if(d)for(a in e=b.cookies(),c)c[a]!==e[a]&&(m(e[a])?delete c[a]:c[a]=e[a])}); 7 | return c}]).factory("$cookieStore",["$cookies",function(d){return{get:function(b){return(b=d[b])?f.fromJson(b):b},put:function(b,c){d[b]=f.toJson(c)},remove:function(b){delete d[b]}}}])})(window,window.angular); 8 | //# sourceMappingURL=angular-cookies.min.js.map 9 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/angular-loader.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | AngularJS v1.2.0 3 | (c) 2010-2012 Google, Inc. http://angularjs.org 4 | License: MIT 5 | */ 6 | (function(k){'use strict';function d(c,b,e){return c[b]||(c[b]=e())}var l=minErr("$injector");return d(d(k,"angular",Object),"module",function(){var c={};return function(b,e,f){assertNotHasOwnProperty(b,"module");e&&c.hasOwnProperty(b)&&(c[b]=null);return d(c,b,function(){function a(a,b,d){return function(){c[d||"push"]([a,b,arguments]);return g}}if(!e)throw l("nomod",b);var c=[],d=[],h=a("$injector","invoke"),g={_invokeQueue:c,_runBlocks:d,requires:e,name:b,provider:a("$provide","provider"),factory:a("$provide", 7 | "factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:h,run:function(a){d.push(a);return this}};f&&h(f);return g})}})})(window); 8 | //# sourceMappingURL=angular-loader.min.js.map 9 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/.htaccess: -------------------------------------------------------------------------------- 1 | ## OFFLINE SUPPORT ## 2 | 3 | # These rules tell apache to check if there is a cookie called "offline", with value set to the 4 | # current angular version. If this rule matches the appcache-offline.manifest will be served for 5 | # requests to appcache.manifest 6 | # 7 | # This file must be processed by Grunt in order to replace %ANGULAR_VERSION% with the actual version. 8 | 9 | Options -Indexes 10 | RewriteEngine on 11 | RewriteCond %{HTTP_COOKIE} ng-offline=1.1.4 12 | RewriteRule appcache.manifest appcache-offline.manifest 13 | 14 | ## Redirect to the latest manifest 15 | RewriteCond %{HTTP_HOST} ^docs-next\.angularjs\.org$ 16 | RewriteRule appcache.manifest http://code.angularjs.org/next/docs/appcache.manifest [R=301] 17 | 18 | ## HTML5 URL Support ## 19 | RewriteRule ^(guide|api|cookbook|misc|tutorial)(/.*)?$ index.html 20 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/appcache.manifest: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | # 2013-04-04T02:26:14.068Z 3 | 4 | # cache all of these 5 | CACHE: 6 | syntaxhighlighter/syntaxhighlighter-combined.js 7 | ../angular.min.js 8 | docs-combined.js 9 | docs-keywords.js 10 | docs-combined.css 11 | syntaxhighlighter/syntaxhighlighter-combined.css 12 | img/texture_1.png 13 | img/yellow_bkgnd.jpg 14 | 15 | FALLBACK: 16 | / /build/docs/offline.html 17 | 18 | # allow access to google analytics and twitter when we are online 19 | NETWORK: 20 | * -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/docs-scenario.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AngularJS Docs E2E Test Runner 5 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/favicon.ico -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.svgz -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/AngularJS-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/AngularJS-small.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/One_Way_Data_Binding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/One_Way_Data_Binding.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/Two_Way_Data_Binding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/Two_Way_Data_Binding.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/angular_parts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/angular_parts.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/bullet.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/form_data_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/form_data_flow.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/about_model_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/about_model_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/about_view_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/about_view_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-controller.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-directive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-directive.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-model.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-module-injector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-module-injector.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-runtime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-runtime.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-scope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-scope.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-startup.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/concepts-view.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/di_sequence_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/di_sequence_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/dom_scope_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/dom_scope_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/hashbang_vs_regular_url.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/hashbang_vs_regular_url.jpg -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/scenario_runner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/scenario_runner.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/guide/simple_scope_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/guide/simple_scope_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/helloworld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/helloworld.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/helloworld_2way.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/helloworld_2way.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/catalog_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/catalog_screen.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_00.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_00_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_00_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_02.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_03.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_04.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_07_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_07_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_08-09_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_08-09_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_10-11_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/tutorial_10-11_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/img/tutorial/xhr_service_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/gh-pages/assets/scripts/angular/impl/docs/img/tutorial/xhr_service_final.png -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/offline.html: -------------------------------------------------------------------------------- 1 |

OFFLINE

2 | 3 |

This page is currently unavailable because your are offline.

4 |

Please connect to the Internet and reload the page.

5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/AUTO.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Implicit module which gets automatically added to each $injector.

5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.bind.html: -------------------------------------------------------------------------------- 1 |

angular.bind 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Returns a function which calls function fn bound to self (self becomes the this for 7 | fn). You can supply optional args that are are prebound to the function. This feature is also 8 | known as function currying.

9 |

Usage

10 |
angular.bind(self, fn, args);
11 |

Parameters

12 |
  • self – {Object} – 13 |

    Context which fn should be evaluated in.

  • 14 |
  • fn – {function()} – 15 |

    Function to be bound.

  • 16 |
  • args – {...*} – 17 |

    Optional arguments to be prebound to the fn function call.

  • 18 |
19 |

Returns

20 |
{function()} 21 | –

Function that wraps the fn with all the specified bindings.

22 |
23 |
24 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.bootstrap.html: -------------------------------------------------------------------------------- 1 |

angular.bootstrap 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Use this function to manually start up angular application.

7 | 8 |

See: Bootstrap

9 |

Usage

10 |
angular.bootstrap(element[, modules]);
11 |

Parameters

12 |
  • element – {Element} – 13 |

    DOM element which is the root of angular application.

  • 14 |
  • modules(optional) – {Array<String|Function>=} – 15 |

    an array of module declarations. See: modules

  • 16 |
17 |

Returns

18 |
{AUTO.$injector} 19 | –

Returns the newly created injector for this app.

20 |
21 |
22 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.copy.html: -------------------------------------------------------------------------------- 1 |

angular.copy 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Creates a deep copy of source, which should be an object or an array.

7 | 8 |
    9 |
  • If no destination is supplied, a copy of the object or array is created.
  • 10 |
  • If a destination is provided, all of its elements (for array) or properties (for objects) 11 | are deleted and then all elements/properties from the source are copied to it.
  • 12 |
  • If source is not an object or array, source is returned.
  • 13 |
14 | 15 |

Note: this function is used to augment the Object type in Angular expressions. See 16 | ng.$filter for more information about Angular arrays.

17 |

Usage

18 |
angular.copy(source[, destination]);
19 |

Parameters

20 |
  • source – {*} – 21 |

    The source that will be used to make a copy. 22 | Can be any type, including primitives, null, and undefined.

  • 23 |
  • destination(optional) – {(Object|Array)=} – 24 |

    Destination into which the source is copied. If 25 | provided, must be of the same type as source.

  • 26 |
27 |

Returns

28 |
{*} 29 | –

The copy or updated destination, if destination was specified.

30 |
31 |
32 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.equals.html: -------------------------------------------------------------------------------- 1 |

angular.equals 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if two objects or two values are equivalent. Supports value types, arrays and 7 | objects.

8 | 9 |

Two objects or values are considered equivalent if at least one of the following is true:

10 | 11 |
    12 |
  • Both objects or values pass === comparison.
  • 13 |
  • Both objects or values are of the same type and all of their properties pass === comparison.
  • 14 |
  • Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)
  • 15 |
16 | 17 |

During a property comparison, properties of function type and properties with names 18 | that begin with $ are ignored.

19 | 20 |

Scope and DOMWindow objects are being compared only be identify (===).

21 |

Usage

22 |
angular.equals(o1, o2);
23 |

Parameters

24 |
  • o1 – {*} – 25 |

    Object or value to compare.

  • 26 |
  • o2 – {*} – 27 |

    Object or value to compare.

  • 28 |
29 |

Returns

30 |
{boolean} 31 | –

True if arguments are equal.

32 |
33 |
34 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.extend.html: -------------------------------------------------------------------------------- 1 |

angular.extend 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Extends the destination object dst by copying all of the properties from the src object(s) 7 | to dst. You can specify multiple src objects.

8 |

Usage

9 |
angular.extend(dst, src);
10 |

Parameters

11 |
  • dst – {Object} – 12 |

    Destination object.

  • 13 |
  • src – {...Object} – 14 |

    Source object(s).

  • 15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.fromJson.html: -------------------------------------------------------------------------------- 1 |

angular.fromJson 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Deserializes a JSON string.

7 |

Usage

8 |
angular.fromJson(json);
9 |

Parameters

10 |
  • json – {string} – 11 |

    JSON string to deserialize.

  • 12 |
13 |

Returns

14 |
{Object|Array|Date|string|number} 15 | –

Deserialized thingy.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.identity.html: -------------------------------------------------------------------------------- 1 |

angular.identity 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

A function that returns its first argument. This function is useful when writing code in the 7 | functional style.

8 | 9 |
10 |      function transformer(transformationFn, value) {
11 |        return (transformationFn || identity)(value);
12 |      };
13 |    
14 |

Usage

15 |
angular.identity();
16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.injector.html: -------------------------------------------------------------------------------- 1 |

angular.injector 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Creates an injector function that can be used for retrieving services as well as for 7 | dependency injection (see dependency injection).

8 |

Usage

9 |
angular.injector(modules);
10 |

Parameters

11 |
  • modules – {Array.<string|Function>} – 12 |

    A list of module functions or their aliases. See 13 | angular.module. The ng module must be explicitly added.

  • 14 |
15 |

Returns

16 |
{function()} 17 | –

Injector function. See $injector.

18 |
19 |

Example

20 |

Typical usage 21 |

22 |   // create an injector
23 |   var $injector = angular.injector(['ng']);
24 | 
25 |   // use the injector to kick off your application
26 |   // use the type inference to auto inject arguments, or use implicit injection
27 |   $injector.invoke(function($rootScope, $compile, $document){
28 |     $compile($document)($rootScope);
29 |     $rootScope.$digest();
30 |   });
31 | 
32 |
33 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isArray.html: -------------------------------------------------------------------------------- 1 |

angular.isArray 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is an Array.

7 |

Usage

8 |
angular.isArray(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is an Array.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isDate.html: -------------------------------------------------------------------------------- 1 |

angular.isDate 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a value is a date.

7 |

Usage

8 |
angular.isDate(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is a Date.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isDefined.html: -------------------------------------------------------------------------------- 1 |

angular.isDefined 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is defined.

7 |

Usage

8 |
angular.isDefined(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is defined.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isElement.html: -------------------------------------------------------------------------------- 1 |

angular.isElement 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is a DOM element (or wrapped jQuery element).

7 |

Usage

8 |
angular.isElement(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is a DOM element (or wrapped jQuery element).

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isFunction.html: -------------------------------------------------------------------------------- 1 |

angular.isFunction 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is a Function.

7 |

Usage

8 |
angular.isFunction(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is a Function.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isNumber.html: -------------------------------------------------------------------------------- 1 |

angular.isNumber 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is a Number.

7 |

Usage

8 |
angular.isNumber(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is a Number.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isObject.html: -------------------------------------------------------------------------------- 1 |

angular.isObject 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is an Object. Unlike typeof in JavaScript, nulls are not 7 | considered to be objects.

8 |

Usage

9 |
angular.isObject(value);
10 |

Parameters

11 |
  • value – {*} – 12 |

    Reference to check.

  • 13 |
14 |

Returns

15 |
{boolean} 16 | –

True if value is an Object but not null.

17 |
18 |
19 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isString.html: -------------------------------------------------------------------------------- 1 |

angular.isString 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is a String.

7 |

Usage

8 |
angular.isString(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is a String.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.isUndefined.html: -------------------------------------------------------------------------------- 1 |

angular.isUndefined 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Determines if a reference is undefined.

7 |

Usage

8 |
angular.isUndefined(value);
9 |

Parameters

10 |
  • value – {*} – 11 |

    Reference to check.

  • 12 |
13 |

Returns

14 |
{boolean} 15 | –

True if value is undefined.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.lowercase.html: -------------------------------------------------------------------------------- 1 |

angular.lowercase 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Converts the specified string to lowercase.

7 |

Usage

8 |
angular.lowercase(string);
9 |

Parameters

10 |
  • string – {string} – 11 |

    String to be converted to lowercase.

  • 12 |
13 |

Returns

14 |
{string} 15 | –

Lowercased string.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.mock.debug.html: -------------------------------------------------------------------------------- 1 |

angular.mock.debug 2 | (API in module ng 3 | ) 4 |

5 |

Description

6 |

NOTE: this is not an injectable instance, just a globally available function.

7 | 8 |

Method for serializing common angular objects (scope, elements, etc..) into strings, useful for debugging.

9 | 10 |

This method is also available on window, where it can be used to display objects on debug console.

11 |

Usage

12 |
angular.mock.debug(object);
13 |

Parameters

14 |
  • object – {*} – 15 |
      16 |
    • any object to turn into string.
    • 17 |
  • 18 |
19 |

Returns

20 |
{string} 21 | –

a serialized string of the argument

22 |
23 |
24 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.mock.html: -------------------------------------------------------------------------------- 1 |

angular.mock 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Namespace from 'angular-mocks.js' which contains testing related code.

6 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.mock.module.html: -------------------------------------------------------------------------------- 1 |

angular.mock.module 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

NOTE: This function is also published on window for easy access.

7 | 8 |

This function registers a module configuration code. It collects the configuration information 9 | which will be used when the injector is created by inject.

10 | 11 |

See inject for usage example

12 |

Usage

13 |
angular.mock.module(fns);
14 |

Parameters

15 |
  • fns – {...(string|Function)} – 16 |

    any number of modules which are represented as string 17 | aliases or as anonymous module initialization functions. The modules are used to 18 | configure the injector. The 'ng' and 'ngMock' modules are automatically loaded.

  • 19 |
20 |
21 |
22 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.noop.html: -------------------------------------------------------------------------------- 1 |

angular.noop 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

A function that performs no operations. This function can be useful when writing code in the 7 | functional style. 8 |

 9 |      function foo(callback) {
10 |        var result = calculateResult();
11 |        (callback || angular.noop)(result);
12 |      }
13 |    
14 |

Usage

15 |
angular.noop();
16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.toJson.html: -------------------------------------------------------------------------------- 1 |

angular.toJson 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Serializes input into a JSON-formatted string.

7 |

Usage

8 |
angular.toJson(obj[, pretty]);
9 |

Parameters

10 |
  • obj – {Object|Array|Date|string|number} – 11 |

    Input to be serialized into JSON.

  • 12 |
  • pretty(optional) – {boolean=} – 13 |

    If set to true, the JSON output will contain newlines and whitespace.

  • 14 |
15 |

Returns

16 |
{string} 17 | –

Jsonified string representing obj.

18 |
19 |
20 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.uppercase.html: -------------------------------------------------------------------------------- 1 |

angular.uppercase 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Converts the specified string to uppercase.

7 |

Usage

8 |
angular.uppercase(string);
9 |

Parameters

10 |
  • string – {string} – 11 |

    String to be converted to uppercase.

  • 12 |
13 |

Returns

14 |
{string} 15 | –

Uppercased string.

16 |
17 |
18 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/angular.version.html: -------------------------------------------------------------------------------- 1 |

angular.version 2 | (API in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

An object that contains information about the current AngularJS version. This object has the 7 | following properties:

8 | 9 |
    10 |
  • full{string} – Full version string, such as "0.9.18".
  • 11 |
  • major{number} – Major version number, such as "0".
  • 12 |
  • minor{number} – Minor version number, such as "9".
  • 13 |
  • dot{number} – Dot version number, such as "18".
  • 14 |
  • codeName{string} – Code name of the release, such as "jiggling-armfat".
  • 15 |
16 |

Usage

17 |
angular.version
18 |
19 |
20 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/index.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Use the API Reference documentation when you need more information about a specific feature. Check out 5 | Developer Guide for AngularJS concepts. If you are new to AngularJS we recommend the 6 | Tutorial.

7 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$anchorScroll.html: -------------------------------------------------------------------------------- 1 |

$anchorScroll 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

When called, it checks current value of $location.hash() and scroll to related element, 7 | according to rules specified in 8 | Html5 spec.

9 | 10 |

It also watches the $location.hash() and scroll whenever it changes to match any anchor. 11 | This can be disabled by calling $anchorScrollProvider.disableAutoScrolling().

12 |

Dependencies

13 | 20 |

Usage

21 |
$anchorScroll();
22 |
23 |
24 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$cacheFactory.html: -------------------------------------------------------------------------------- 1 |

$cacheFactory 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Factory that constructs cache objects.

7 |

Usage

8 |
$cacheFactory(cacheId[, options]);
9 |

Parameters

10 |
  • cacheId – {string} – 11 |

    Name or id of the newly created cache.

  • 12 |
  • options(optional) – {object=} – 13 |

    Options object that specifies the cache behavior. Properties:

    14 | 15 |
      16 |
    • {number=} capacity — turns the cache into LRU cache.
    • 17 |
  • 18 |
19 |

Returns

20 |
{object} 21 | –

Newly created cache object with the following set of methods:

22 | 23 |
    24 |
  • {object} info() — Returns id, size, and options of cache.
  • 25 |
  • {{*}} put({string} key, {*} value) — Puts a new key-value pair into the cache and returns it.
  • 26 |
  • {{*}} get({string} key) — Returns cached value for key or undefined for cache miss.
  • 27 |
  • {void} remove({string} key) — Removes a key-value pair from the cache.
  • 28 |
  • {void} removeAll() — Removes all cached values.
  • 29 |
  • {void} destroy() — Removes references to this cache from $cacheFactory.
  • 30 |
31 |
32 |
33 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$controllerProvider.html: -------------------------------------------------------------------------------- 1 |

$controllerProvider 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

The $controller service is used by Angular to create new 7 | controllers.

8 | 9 |

This provider allows controller registration via the 10 | register method.

11 |

Methods

12 |
  • register(name, constructor)

    13 |

    Parameters

    14 |
    • name – {string} – 15 |

      Controller name

    • 16 |
    • constructor – {Function|Array} – 17 |

      Controller constructor fn (optionally decorated with DI 18 | annotations in the array notation).

    • 19 |
    20 |
    21 |
  • 22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$document.html: -------------------------------------------------------------------------------- 1 |

$document 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

A jQuery (lite)-wrapped reference to the browser's window.document 7 | element.

8 |

Dependencies

9 | 12 |
13 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$exceptionHandler.html: -------------------------------------------------------------------------------- 1 |

$exceptionHandler 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Any uncaught exception in angular expressions is delegated to this service. 7 | The default implementation simply delegates to $log.error which logs it into 8 | the browser console.

9 | 10 |

In unit tests, if angular-mocks.js is loaded, this service is overridden by 11 | mock $exceptionHandler which aids in testing.

12 |

Dependencies

13 | 16 |

Usage

17 |
$exceptionHandler(exception[, cause]);
18 |

Parameters

19 |
  • exception – {Error} – 20 |

    Exception associated with the error.

  • 21 |
  • cause(optional) – {string=} – 22 |

    optional information about the context in which 23 | the error was thrown.

  • 24 |
25 |
26 |
27 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$filter.html: -------------------------------------------------------------------------------- 1 |

$filter 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Filters are used for formatting data displayed to the user.

7 | 8 |

The general syntax in templates is as follows:

9 | 10 |
    {{ expression | [ filter_name ] }}
11 | 
12 |

Usage

13 |
$filter(name);
14 |

Parameters

15 |
  • name – {String} – 16 |

    Name of the filter function to retrieve

  • 17 |
18 |

Returns

19 |
{Function} 20 | –

the filter function

21 |
22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$httpBackend.html: -------------------------------------------------------------------------------- 1 |

$httpBackend 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

HTTP backend used by the service that delegates to 7 | XMLHttpRequest object or JSONP and deals with browser incompatibilities.

8 | 9 |

You should never need to use this service directly, instead use the higher-level abstractions: 10 | $http or $resource.

11 | 12 |

During testing this implementation is swapped with mock $httpBackend which can be trained with responses.

13 |

Dependencies

14 | 21 |
22 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$interpolateProvider.html: -------------------------------------------------------------------------------- 1 |

$interpolateProvider 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Used for configuring the interpolation markup. Defaults to {{ and }}.

7 |

Methods

8 |
  • endSymbol(value)

    9 |

    Symbol to denote the end of expression in the interpolated string. Defaults to }}.

    Parameters

    10 |
    • value(optional) – {string=} – 11 |

      new value to set the ending symbol to.

    • 12 |
    13 |

    Returns

    14 |
    {string|self} 15 | –

    Returns the symbol when used as getter and self if used as setter.

    16 |
    17 |
  • 18 |
  • startSymbol(value)

    19 |

    Symbol to denote start of expression in the interpolated string. Defaults to {{.

    Parameters

    20 |
    • value(optional) – {string=} – 21 |

      new value to set the starting symbol to.

    • 22 |
    23 |

    Returns

    24 |
    {string|self} 25 | –

    Returns the symbol when used as getter and self if used as setter.

    26 |
    27 |
  • 28 |
29 |
30 |
31 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$locale.html: -------------------------------------------------------------------------------- 1 |

$locale 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

$locale service provides localization rules for various Angular components. As of right now the 7 | only public api is:

8 | 9 |
    10 |
  • id{string} – locale id formatted as languageId-countryId (e.g. en-us)
  • 11 |
12 |
13 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$locationProvider.html: -------------------------------------------------------------------------------- 1 |

$locationProvider 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Use the $locationProvider to configure how the application deep linking paths are stored.

7 |

Methods

8 |
  • hashPrefix(prefix)

    9 |

    Parameters

    10 |
    • prefix(optional) – {string=} – 11 |

      Prefix for hash part (containing path and search)

    • 12 |
    13 |

    Returns

    14 |
    {*} 15 | –

    current value if used as getter or itself (chaining) if used as setter

    16 |
    17 |
  • 18 |
  • html5Mode(mode)

    19 |

    Parameters

    20 |
    • mode(optional) – {string=} – 21 |

      Use HTML5 strategy if available.

    • 22 |
    23 |

    Returns

    24 |
    {*} 25 | –

    current value if used as getter or itself (chaining) if used as setter

    26 |
    27 |
  • 28 |
29 |
30 |
31 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$rootElement.html: -------------------------------------------------------------------------------- 1 |

$rootElement 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

The root element of Angular application. This is either the element where ngApp was declared or the element passed into 6 | angular.bootstrap. The element represent the root element of application. It is also the 7 | location where the applications $injector service gets 8 | published, it can be retrieved using $rootElement.injector().

9 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$rootScope.html: -------------------------------------------------------------------------------- 1 |

$rootScope 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Every application has a single root scope. 7 | All other scopes are child scopes of the root scope. Scopes provide mechanism for watching the model and provide 8 | event processing life-cycle. See developer guide on scopes.

9 |
10 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$rootScopeProvider.html: -------------------------------------------------------------------------------- 1 |

$rootScopeProvider 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Provider for the $rootScope service.

7 |

Methods

8 |
  • digestTtl(limit)

    9 |

    Sets the number of digest iteration the scope should attempt to execute before giving up and 10 | assuming that the model is unstable.

    11 | 12 |

    The current default is 10 iterations.

    Parameters

    13 |
    • limit – {number} – 14 |

      The number of digest iterations.

    • 15 |
    16 |
    17 |
  • 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$routeParams.html: -------------------------------------------------------------------------------- 1 |

$routeParams 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Current set of route parameters. The route parameters are a combination of the 7 | $location search(), and path(). The path parameters 8 | are extracted when the $route path is matched.

9 | 10 |

In case of parameter name collision, path params take precedence over search params.

11 | 12 |

The service guarantees that the identity of the $routeParams object will remain unchanged 13 | (but its properties will likely change) even when a route change occurs.

14 |

Dependencies

15 | 18 |

Example

19 |
20 | // Given:
21 | // URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby
22 | // Route: /Chapter/:chapterId/Section/:sectionId
23 | //
24 | // Then
25 | $routeParams ==> {chapterId:1, sectionId:2, search:'moby'}
26 | 
27 |
28 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$templateCache.html: -------------------------------------------------------------------------------- 1 |

$templateCache 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Cache used for storing html templates.

7 | 8 |

See $cacheFactory.

9 |
10 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.$window.html: -------------------------------------------------------------------------------- 1 |

$window 2 | (service in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

A reference to the browser's window object. While window 7 | is globally available in JavaScript, it causes testability problems, because 8 | it is a global variable. In angular we always refer to it through the 9 | $window service, so it may be overridden, removed or mocked for testing.

10 | 11 |

All expressions are evaluated with respect to current scope so they don't 12 | suffer from window globality.

13 |

Example

14 |

Source

15 |
16 |
17 |

18 | 
22 | 
23 |
24 |

25 | 
27 | 
28 |

Demo

29 |
30 |
31 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_a.html: -------------------------------------------------------------------------------- 1 |

a 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Modifies the default behavior of html A tag, so that the default action is prevented when href 7 | attribute is empty.

8 | 9 |

The reasoning for this change is to allow easy creation of action links with ngClick directive 10 | without changing the location or causing page reloads, e.g.: 11 | <a href="" ng-click="model.$save()">Save</a>

12 |

Usage

13 |

This directive can be used as custom element, but we aware of IE restrictions.

as element:
<a>
14 | </a>
15 |
16 |
17 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngBindHtmlUnsafe.html: -------------------------------------------------------------------------------- 1 |

ngBindHtmlUnsafe 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Creates a binding that will innerHTML the result of evaluating the expression into the current 7 | element. The innerHTML-ed content will not be sanitized! You should use this directive only if 8 | ngBindHtml directive is too 9 | restrictive and when you absolutely trust the source of the content you are binding to.

10 | 11 |

See $sanitize docs for examples.

12 |

Usage

13 |
as attribute
<ANY ng-bind-html-unsafe="{expression}">
14 |    ...
15 | </ANY>
16 | as class
<ANY class="ng-bind-html-unsafe: {expression};">
17 |    ...
18 | </ANY>
19 |

Parameters

20 |
  • ngBindHtmlUnsafe – {expression} – 21 |

    Expression to evaluate.

  • 22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngCsp.html: -------------------------------------------------------------------------------- 1 |

ngCsp 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Enables CSP (Content Security Policy) support. 7 | This directive should be used on the root element of the application (typically the <html> 8 | element or other element with the ngApp 9 | directive).

10 | 11 |

If enabled the performance of template expression evaluator will suffer slightly, so don't enable 12 | this mode unless you need it.

13 |

Usage

14 |
as attribute
<html ng-csp>
15 |    ...
16 | </html>
17 | as class
<html class="ng-csp">
18 |    ...
19 | </html>
20 |

Directive info

21 |
  • This directive executes at priority level 1000.
  • 22 |
23 |
24 |
25 |
26 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngDblclick.html: -------------------------------------------------------------------------------- 1 |

ngDblclick 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

The ngDblclick directive allows you to specify custom behavior on dblclick event.

7 |

Usage

8 |
as attribute
<ANY ng-dblclick="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-dblclick: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngDblclick – {expression} – 16 |

    Expression to evaluate upon 17 | dblclick. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngForm.html: -------------------------------------------------------------------------------- 1 |

ngForm 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Nestable alias of form directive. HTML 7 | does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a 8 | sub-group of controls needs to be determined.

9 |

Usage

10 |

This directive can be used as custom element, but we aware of IE restrictions.

as element:
<ng-form
11 |        [ngForm="{string}"]>
12 | </ng-form>
13 | as attribute
<ANY ng-form
14 |      [name="{string}"]>
15 |    ...
16 | </ANY>
17 | as class
<ANY class="ng-form [name: {string};]">
18 |    ...
19 | </ANY>
20 |

Parameters

21 |
  • name|ngForm(optional) – {string=} – 22 |

    Name of the form. If specified, the form controller will be published into 23 | related scope, under this name.

  • 24 |
25 |
26 |
27 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMousedown.html: -------------------------------------------------------------------------------- 1 |

ngMousedown 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

The ngMousedown directive allows you to specify custom behavior on mousedown event.

7 |

Usage

8 |
as attribute
<ANY ng-mousedown="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mousedown: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMousedown – {expression} – 16 |

    Expression to evaluate upon 17 | mousedown. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMouseenter.html: -------------------------------------------------------------------------------- 1 |

ngMouseenter 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Specify custom behavior on mouseenter event.

7 |

Usage

8 |
as attribute
<ANY ng-mouseenter="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mouseenter: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMouseenter – {expression} – 16 |

    Expression to evaluate upon 17 | mouseenter. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMouseleave.html: -------------------------------------------------------------------------------- 1 |

ngMouseleave 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Specify custom behavior on mouseleave event.

7 |

Usage

8 |
as attribute
<ANY ng-mouseleave="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mouseleave: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMouseleave – {expression} – 16 |

    Expression to evaluate upon 17 | mouseleave. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMousemove.html: -------------------------------------------------------------------------------- 1 |

ngMousemove 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Specify custom behavior on mousemove event.

7 |

Usage

8 |
as attribute
<ANY ng-mousemove="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mousemove: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMousemove – {expression} – 16 |

    Expression to evaluate upon 17 | mousemove. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMouseover.html: -------------------------------------------------------------------------------- 1 |

ngMouseover 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Specify custom behavior on mouseover event.

7 |

Usage

8 |
as attribute
<ANY ng-mouseover="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mouseover: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMouseover – {expression} – 16 |

    Expression to evaluate upon 17 | mouseover. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngMouseup.html: -------------------------------------------------------------------------------- 1 |

ngMouseup 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Specify custom behavior on mouseup event.

7 |

Usage

8 |
as attribute
<ANY ng-mouseup="{expression}">
 9 |    ...
10 | </ANY>
11 | as class
<ANY class="ng-mouseup: {expression};">
12 |    ...
13 | </ANY>
14 |

Parameters

15 |
  • ngMouseup – {expression} – 16 |

    Expression to evaluate upon 17 | mouseup. (Event object is available as $event)

  • 18 |
19 |
20 |

Example

21 | 22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.directive_ngSrc.html: -------------------------------------------------------------------------------- 1 |

ngSrc 2 | (directive in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Using Angular markup like {{hash}} in a src attribute doesn't 7 | work right: The browser will fetch from the URL with the literal 8 | text {{hash}} until Angular replaces the expression inside 9 | {{hash}}. The ngSrc directive solves this problem.

10 | 11 |

The buggy way to write it: 12 |

13 | <img src="http://www.gravatar.com/avatar/{{hash}}"/>
14 | 
15 | 16 |

The correct way to write it: 17 |

18 | <img ng-src="http://www.gravatar.com/avatar/{{hash}}"/>
19 | 
20 |

Usage

21 |
as attribute
<IMG ng-src="{template}">
22 |    ...
23 | </IMG>
24 |

Parameters

25 |
  • ngSrc – {template} – 26 |

    any string which can contain {{}} markup.

  • 27 |
28 |
29 |
30 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.filter_lowercase.html: -------------------------------------------------------------------------------- 1 |

lowercase 2 | (filter in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Converts string to lowercase.

7 |

Usage

8 |

In HTML Template Binding

9 |
{{ lowercase_expression | lowercase }} 10 |
11 |

In JavaScript

12 |
$filter('lowercase')() 13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.filter_uppercase.html: -------------------------------------------------------------------------------- 1 |

uppercase 2 | (filter in module ng 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Converts string to uppercase.

7 |

Usage

8 |

In HTML Template Binding

9 |
{{ uppercase_expression | uppercase }} 10 |
11 |

In JavaScript

12 |
$filter('uppercase')() 13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ng.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

The ng is an angular module which contains all of the core angular services.

5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngCookies.$cookies.html: -------------------------------------------------------------------------------- 1 |

$cookies 2 | (service in module ngCookies 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Provides read/write access to browser's cookies.

7 | 8 |

Only a simple Object is exposed and by adding or removing properties to/from 9 | this object, new cookies are created/deleted at the end of current $eval.

10 |

Dependencies

11 | 14 |

Example

15 |

Source

16 |
17 |
18 |

19 | 
22 | 
23 |
24 |

25 | 
33 | 
34 |

Demo

35 |
36 |
37 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngCookies.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc
5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMock.$exceptionHandler.html: -------------------------------------------------------------------------------- 1 |

$exceptionHandler 2 | (service in module ngMock 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Mock implementation of ng.$exceptionHandler that rethrows or logs errors passed 7 | into it. See $exceptionHandlerProvider for configuration 8 | information.

9 | 10 |
11 |   describe('$exceptionHandlerProvider', function() {
12 | 
13 |     it('should capture log messages and exceptions', function() {
14 | 
15 |       module(function($exceptionHandlerProvider) {
16 |         $exceptionHandlerProvider.mode('log');
17 |       });
18 | 
19 |       inject(function($log, $exceptionHandler, $timeout) {
20 |         $timeout(function() { $log.log(1); });
21 |         $timeout(function() { $log.log(2); throw 'banana peel'; });
22 |         $timeout(function() { $log.log(3); });
23 |         expect($exceptionHandler.errors).toEqual([]);
24 |         expect($log.assertEmpty());
25 |         $timeout.flush();
26 |         expect($exceptionHandler.errors).toEqual(['banana peel']);
27 |         expect($log.log.logs).toEqual([[1], [2], [3]]);
28 |       });
29 |     });
30 |   });
31 | 
32 |
33 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMock.$exceptionHandlerProvider.html: -------------------------------------------------------------------------------- 1 |

$exceptionHandlerProvider 2 | (service in module ngMock 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Configures the mock implementation of ng.$exceptionHandler to rethrow or to log errors passed 7 | into the $exceptionHandler.

8 |

Methods

9 |
  • mode(mode)

    10 |

    Sets the logging mode.

    Parameters

    11 |
    • mode – {string} – 12 |

      Mode of operation, defaults to rethrow.

      13 | 14 |
        15 |
      • rethrow: If any errors are are passed into the handler in tests, it typically 16 | means that there is a bug in the application or test, so this mock will 17 | make these tests fail.
      • 18 |
      • log: Sometimes it is desirable to test that an error is thrown, for this case the log mode stores an 19 | array of errors in $exceptionHandler.errors, to allow later assertion of them. 20 | See assertEmpty() and 21 | reset()
      • 22 |
    • 23 |
    24 |
    25 |
  • 26 |
27 |
28 |
29 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMock.$log.html: -------------------------------------------------------------------------------- 1 |

$log 2 | (service in module ngMock 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Mock implementation of ng.$log that gathers all logged messages in arrays 7 | (one array per logging level). These arrays are exposed as logs property of each of the 8 | level-specific log function, e.g. for level error the array is exposed as $log.error.logs.

9 |

Methods

10 |
  • assertEmpty()

    11 |

    Assert that the all of the logging methods have no logged messages. If messages present, an exception is thrown.

    12 |
  • 13 |
  • reset()

    14 |

    Reset all of the logging arrays to empty.

    15 |
  • 16 |
17 |
18 |

Properties

19 |
  • logs

    20 |

    Array of logged messages.

    21 |
  • 22 |
  • logs

    23 |

    Array of logged messages.

    24 |
  • 25 |
  • logs

    26 |

    Array of logged messages.

    27 |
  • 28 |
  • logs

    29 |

    Array of logged messages.

    30 |
  • 31 |
32 |
33 |
34 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMock.$timeout.html: -------------------------------------------------------------------------------- 1 |

$timeout 2 | (service in module ngMock 3 | ) 4 |

5 |
Improve this doc

Description

6 |

This service is just a simple decorator for $timeout service 7 | that adds a "flush" and "verifyNoPendingTasks" methods.

8 |

Usage

9 |
$timeout();
10 |
11 |

Methods

12 |
  • flush()

    13 |

    Flushes the queue of pending tasks.

    14 |
  • 15 |
  • verifyNoPendingTasks()

    16 |

    Verifies that there are no pending tasks that need to be flushed.

    17 |
  • 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMock.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

The ngMock is an angular module which is used with ng module and adds unit-test configuration as well as useful 5 | mocks to the $injector.

6 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngMockE2E.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

The ngMockE2E is an angular module which contains mocks suitable for end-to-end testing. 5 | Currently there is only one mock present in this module - 6 | the e2e $httpBackend mock.

7 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngResource.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc
5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngSanitize.directive_ngBindHtml.html: -------------------------------------------------------------------------------- 1 |

ngBindHtml 2 | (directive in module ngSanitize 3 | ) 4 |

5 |
Improve this doc

Description

6 |

Creates a binding that will sanitize the result of evaluating the expression with the 7 | $sanitize service and innerHTML the result into the current element.

8 | 9 |

See $sanitize docs for examples.

10 |

Usage

11 |
as attribute
<ANY ng-bind-html="{expression}">
12 |    ...
13 | </ANY>
14 | as class
<ANY class="ng-bind-html: {expression};">
15 |    ...
16 | </ANY>
17 |

Parameters

18 |
  • ngBindHtml – {expression} – 19 |

    Expression to evaluate.

  • 20 |
21 |
22 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/api/ngSanitize.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc
5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/dev_guide.mvc.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

While Model-View-Controller (MVC) has acquired different shades of meaning over the years since it 5 | first appeared, Angular incorporates the basic principles behind the original MVC software design pattern into its way of 6 | building client-side web applications.

7 | 8 |

The MVC pattern summarized:

9 | 10 |
    11 |
  • Separate applications into distinct presentation, data, and logic components
  • 12 |
  • Encourage loose coupling between these components
  • 13 |
14 | 15 |

Along with services and dependency injection, MVC 16 | makes angular applications better structured, easier to maintain and more testable.

17 | 18 |

The following topics explain how angular incorporates the MVC pattern into the angular way of 19 | developing web applications:

20 | 21 |
26 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/dev_guide.mvc.understanding_view.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

In Angular, the view is the DOM loaded and rendered in the browser, after Angular has transformed 5 | the DOM based on information in the template, controller and model.

6 | 7 |

8 | 9 |

In the Angular implementation of MVC, the view has knowledge of both the model and the controller. 10 | The view knows about the model where two-way data-binding occurs. The view has knowledge of the 11 | controller through Angular directives, such as ngController and ngView, and through bindings of this form: 12 | {{someControllerFunction()}}. In these ways, the view can call functions in an associated 13 | controller function.

14 | 15 |

Related Topics

16 | 17 |
22 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/dev_guide.services.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Services are a feature that Angular brings to client-side web apps from the server side, where 5 | services have been commonly used for a long time. Services in Angular apps are substitutable 6 | objects that are wired together using dependency injection (DI).

7 | 8 |

Related Topics

9 | 10 | 17 | 18 |

Related API

19 | 20 |
23 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/dev_guide.templates.css-styling.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Angular sets these CSS classes. It is up to your application to provide useful styling.

5 | 6 |

CSS classes used by angular

7 | 8 |
    9 |
  • ng-invalid, ng-valid

    10 | 11 |
    • Usage: angular applies this class to an input widget element if that element's input does 12 | not pass validation. (see input directive).
  • 13 |
  • ng-pristine, ng-dirty

    14 | 15 |
    • Usage: angular input directive applies ng-pristine class 16 | to a new input widget element which did not have user interaction. Once the user interacts with 17 | the input widget the class is changed to ng-dirty.
  • 18 |
19 | 20 |

Related Topics

21 | 22 |
26 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/dev_guide.templates.filters.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Angular filters format data for display to the user.

5 | 6 |

For example, you might have a data object that needs to be formatted according to the locale before 7 | displaying it to the user. You can pass expressions through a chain of filters like this:

8 | 9 |
    name | uppercase
10 | 
11 | 12 |

The expression evaluator simply passes the value of name to 13 | uppercase filter.

14 | 15 |

Related Topics

16 | 17 | 21 | 22 |

Related API

23 | 24 |
27 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/index.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Welcome to the angular Developer Guide. If you are here to learn the details of how to use angular 5 | to develop web apps, you've come to the right place.

6 | 7 |

If you are completely or relatively unfamiliar with angular, you may want to check out one or both 8 | of the following documents before returning here to the Developer Guide:

9 | 10 |
14 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/guide/type.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc
5 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/partials/tutorial/the_end.html: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
Improve this doc

Our application is now complete. Feel free to experiment with the code further, and jump back to 5 | previous steps using the git checkout command.

6 | 7 |

For more details and examples of the Angular concepts we touched on in this tutorial, see the 8 | Developer Guide.

9 | 10 |

For several more examples of code, see the Cookbook.

11 | 12 |

When you are ready to start developing a project using Angular, we recommend that you bootstrap 13 | your development with the angular-seed project.

14 | 15 |

We hope this tutorial was useful to you and that you learned enough about Angular to make you want 16 | to learn more. We especially hope you are inspired to go out and develop Angular web apps of your 17 | own, and that you might be interested in contributing to Angular.

18 | 19 |

If you have questions or feedback or just want to say "hi", please post a message at https://groups.google.com/forum/#!forum/angular.

20 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/docs/robots.txt: -------------------------------------------------------------------------------- 1 | Sitemap: http://docs.angularjs.org/sitemap.xml 2 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/angular/impl/version.txt: -------------------------------------------------------------------------------- 1 | 1.1.4 -------------------------------------------------------------------------------- /gh-pages/assets/scripts/assets.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// -------------------------------------------------------------------------------- /gh-pages/assets/scripts/syntaxhighlight/impl/shAutoloader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d 3 | * URL: http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language 4 | * License: GPL-2 | GPL-3 5 | */ 6 | SyntaxHighlighter.brushes.R = function() 7 | { 8 | var keywords = 'if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_'; 9 | var constants = 'LETTERS letters month.abb month.name pi'; 10 | this.regexList = [ 11 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 12 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 13 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 14 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 15 | { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, 16 | { regex: /[\w._]+[ \t]*(?=\()/gm, css: 'functions' }, 17 | ]; 18 | }; 19 | SyntaxHighlighter.brushes.R.prototype = new SyntaxHighlighter.Highlighter(); 20 | SyntaxHighlighter.brushes.R.aliases = ['r', 's', 'splus']; 21 | -------------------------------------------------------------------------------- /gh-pages/assets/scripts/syntaxhighlight/impl/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?\\\\w+)\\\\]$","U"),i=1,p=0;p$stateTransition 2 |
service in module dotjem.routing 3 | 4 |
5 | 6 |

Description

7 |

See $stateTransitionProvider for details on how to configure transitions.

8 |
9 |
10 | -------------------------------------------------------------------------------- /gh-pages/docs/partials/dotjem.routing.directive.id.html: -------------------------------------------------------------------------------- 1 |

id 2 |
directive in module dotjem.routing 3 | 4 |
5 |

6 |

Description

7 |

Provides an anchor point for the $scroll service to use.

8 |
9 |

Usage

10 |
as attribute
<ANY id
11 |      jem-anchor="{string}">
12 |    ...
13 | </ANY>
14 | as class
<ANY class="id jem-anchor: {string};">
15 |    ...
16 | </ANY>
17 |

Parameters

ParamTypeDetails
jemAnchor|idstring

Identifier of the anchor

18 |
19 |
20 | -------------------------------------------------------------------------------- /gh-pages/docs/partials/dotjem.routing.directive.jemAnchor.html: -------------------------------------------------------------------------------- 1 |

jemAnchor 2 |
directive in module dotjem.routing 3 | 4 |
5 |

6 |

Description

7 |

Provides an anchor point for the $scroll service to use.

8 |
9 |

Usage

10 |
as attribute
<ANY jem-anchor="{string}">
11 |    ...
12 | </ANY>
13 | as class
<ANY class="jem-anchor: {string};">
14 |    ...
15 | </ANY>
16 |

Parameters

ParamTypeDetails
jemAnchor|idstring

Identifier of the anchor

17 |
18 |
19 | -------------------------------------------------------------------------------- /gh-pages/docs/partials/dotjem.routing.directive.sref.html: -------------------------------------------------------------------------------- 1 |

sref 2 |
directive in module dotjem.routing 3 | 4 |
5 |

6 |

Description

7 |

Provides a link to a state.

8 |
9 |

Usage

10 |
as attribute
<ANY sref
11 |      params="{string}"
12 |      active-class="{string}">
13 |    ...
14 | </ANY>
15 | as class
<ANY class="sref params: {string}; active-class: {string};">
16 |    ...
17 | </ANY>
18 |

Parameters

ParamTypeDetails
paramsstring

Parameters for the state link.

19 |
activeClassstring

Class to add when the state targeted is active.

20 |
21 |
22 | -------------------------------------------------------------------------------- /gh-pages/docs/partials/dotjem.routing.html: -------------------------------------------------------------------------------- 1 |

2 |
3 |
4 |

5 |

Module that provides state based routing, deeplinking services and directives for angular apps.

6 |
7 | -------------------------------------------------------------------------------- /gh-pages/docs/partials/dotjem.routing.type.transaction.html: -------------------------------------------------------------------------------- 1 |

transaction 2 |
type in module dotjem.routing 3 | 4 |
5 |

6 |

Description

7 |

Records updates to views and applies them when committed.

8 |
9 |

Methods

10 |
  • cancel()

    11 |

    Cancels the view transaction, discarding any changes that may have been recorded.

    12 |
    13 |
  • 14 |
  • commit()

    15 |

    Commits the view transaction, applying any changes that may have been recorded. 16 |
    17 | Only the final state will be applied, meaning that if the same view had recieved a series of updates, only an update 18 | for the final state the view will take will be issues, if it causes the view to change state.

    19 |
    20 |
  • 21 |
  • pending()

    22 |

    Returns all pending changes.

    23 |
    24 |
  • 25 |
26 |
27 |
28 | -------------------------------------------------------------------------------- /gh-pages/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dotjem-routing-pages", 3 | "title": "dotJEM Routing Pages", 4 | "description": "Github Pages for Angular Routing Project", 5 | "version": "0.0.1", 6 | "homepage": "", 7 | "author": { 8 | "name": "dotjem", 9 | "url": "https://github.com/dotJEM" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/dotJEM/Blog" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/dotJEM/Blog/issues" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "MIT", 21 | "url": "https://github.com/dotJEM/Blog/blob/master/LICENSE" 22 | } 23 | ], 24 | "dependencies": {}, 25 | "devDependencies": { 26 | "requirejs": "~2.1.10", 27 | "karma-firefox-launcher": "~0.1.3", 28 | "karma-chrome-launcher": "~0.1.2", 29 | "karma-script-launcher": "~0.1.0", 30 | "karma-html2js-preprocessor": "~0.1.0", 31 | "karma-jasmine": "~0.1.5", 32 | "karma-coffee-preprocessor": "~0.1.2", 33 | "karma-requirejs": "~0.2.1", 34 | "karma-phantomjs-launcher": "~0.1.1", 35 | "karma": "~0.10.9", 36 | "grunt": "~0.4.2", 37 | "grunt-typescript": "~0.2.7", 38 | "grunt-contrib-concat": "~0.3.0", 39 | "grunt-contrib-clean": "~0.5.0", 40 | "grunt-contrib-uglify": "~0.2.7", 41 | "grunt-contrib-watch": "~0.5.3", 42 | "grunt-contrib-connect": "~0.6.0", 43 | "grunt-contrib-copy": "~0.5.0", 44 | "grunt-karma": "~0.6.2", 45 | "grunt-ngdocs": "~0.2.1", 46 | "tslint": "0.4.0", 47 | "grunt-tslint": "~0.4.0", 48 | "grunt-contrib-compress": "~0.6.0" 49 | }, 50 | "keywords": [] 51 | } -------------------------------------------------------------------------------- /gh-pages/samples/basic/about.html: -------------------------------------------------------------------------------- 1 |
2 |

About

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/basic/about.module.js: -------------------------------------------------------------------------------- 1 | angular.module('demo.about', ['dotjem.routing']) 2 | .config(['$stateProvider', function(sp){ 3 | sp.state('about', { 4 | route: '/about', 5 | views: { 6 | main: { template: 'about.html' 7 | } 8 | } 9 | }) 10 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/basic/contact.html: -------------------------------------------------------------------------------- 1 |
2 |

Contact

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/basic/contact.module.js: -------------------------------------------------------------------------------- 1 | angular.module('demo.contact', ['dotjem.routing']) 2 | .config(['$stateProvider', function(sp){ 3 | sp.state('contact', { 4 | route: '/contact', 5 | views: { 6 | main: { template: 'contact.html' 7 | } 8 | } 9 | }) 10 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/basic/demo.js: -------------------------------------------------------------------------------- 1 | var app = angular.module('demo', [ 2 | 'demo.home','demo.about','demo.contact', 3 | 'dotjem.routing']); 4 | 5 | 6 | app.controller('siteController', ['$scope', '$state', 7 | function($scope, $state) { 8 | $scope.fn = { isActive: $state.isActive } 9 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/basic/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Bootstrap starter template

3 | 4 |

Use this document as a way to quickly start any new project. 5 |
All you get is this text and a mostly barebones HTML document.

6 |
-------------------------------------------------------------------------------- /gh-pages/samples/basic/home.module.js: -------------------------------------------------------------------------------- 1 | angular.module('demo.home', ['dotjem.routing']) 2 | .config(['$stateProvider', function(sp){ 3 | sp.state('home', { 4 | route: '/', 5 | views: { 6 | main: { template: 'home.html' 7 | } 8 | } 9 | }) 10 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/basic/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/samples/concepts/routes/about.html: -------------------------------------------------------------------------------- 1 |
2 |

About

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/routes/contact.html: -------------------------------------------------------------------------------- 1 |
2 |

Contact

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/routes/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Bootstrap starter template

3 | 4 |

Use this document as a way to quickly start any new project. 5 |
All you get is this text and a mostly barebones HTML document.

6 | 7 |
8 | 9 | Alternative Links: 10 | 14 | 15 | Bad Links: 16 | -------------------------------------------------------------------------------- /gh-pages/samples/concepts/routes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /gh-pages/samples/concepts/routes/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/about.html: -------------------------------------------------------------------------------- 1 |
2 |

About

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/contact.html: -------------------------------------------------------------------------------- 1 |
2 |

Contact

3 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/demo.js: -------------------------------------------------------------------------------- 1 | var app = angular.module('demo', ['dotjem.routing']); 2 | 3 | app 4 | .config(['$stateProvider', function($stateProvider){ 5 | $stateProvider 6 | .state('about', { 7 | route: '/about', 8 | views: { main: { template: 'about.html' } } 9 | }) 10 | .state('contact', { 11 | route: '/contact', 12 | views: { main: { template: 'contact.html' } } 13 | }) 14 | .state('home', { 15 | route: '/', 16 | views: { main: { template: 'home.html' } } 17 | }) 18 | }]); 19 | 20 | app.controller('siteController', ['$scope', '$state', 21 | function($scope, $state) { 22 | $scope.fn = { isActive: $state.isActive } 23 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Bootstrap starter template

3 | 4 |

Use this document as a way to quickly start any new project. 5 |
All you get is this text and a mostly barebones HTML document.

6 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /gh-pages/samples/concepts/states/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/samples/concepts/transitions/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 18 | 19 |
20 | 21 |
22 |
23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /gh-pages/samples/concepts/transitions/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } 8 | 9 | .view-container{ 10 | position:relative; 11 | } 12 | .view-container h1 { margin: 0; } 13 | .view{ 14 | box-sizing: border-box; 15 | width: 100%; 16 | } 17 | .view.ng-enter, .view.ng-leave{ 18 | position: absolute; 19 | -webkit-transition:all 2s ease-in-out; 20 | transition:all 2s ease-in-out; 21 | } 22 | .view.ng-enter{ 23 | transform: translate3d(100%, 0, 0); 24 | -webkit-transform: translate3d(100%, 0, 0); 25 | } 26 | .view.ng-enter-active{ 27 | transform: translate3d(0, 0, 0); 28 | -webkit-transform: translate3d(0, 0, 0); 29 | } 30 | .view.ng-leave{ 31 | transform: translate3d(0, 0, 0); 32 | -webkit-transform: translate3d(0, 0, 0); 33 | } 34 | .view.ng-leave-active{ 35 | transform: translate3d(-100%, 0, 0); 36 | -webkit-transform: translate3d(-100%, 0, 0); 37 | } -------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/about.html: -------------------------------------------------------------------------------- 1 |
2 |

About

3 |
4 | 5 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/contact.html: -------------------------------------------------------------------------------- 1 |
2 |

Contact

3 |
4 | 5 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/demo.about.js: -------------------------------------------------------------------------------- 1 | app.config(['$stateProvider', function ($stateProvider) { 2 | $stateProvider 3 | .state('about', { 4 | route: '/about', 5 | views: { 6 | sticky: { 7 | sticky: 'fixed', 8 | template: 'sticky.html', 9 | controller: 'stickyController' 10 | }, 11 | main: { 12 | template: 'about.html', 13 | controller: 'aboutController' 14 | }, 15 | footer: { template: function () { 16 | return '

Sibling view loaded with ' 17 | + 'about.html above

'; 18 | } 19 | }, 20 | 'main.aboutContent': { 21 | template: '

We can also embed a view in another,' 22 | + ' this is in {{file}}

', 23 | controller: ['$scope', function ($scope) { 24 | $scope.file = "about.html"; 25 | $scope.refresh = function () { 26 | $scope.file = "REFRESHED"; 27 | } 28 | }] 29 | } 30 | } 31 | }); 32 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/demo.contact.js: -------------------------------------------------------------------------------- 1 | app.config(['$stateProvider', function ($stateProvider) { 2 | $stateProvider 3 | .state('contact', { 4 | route: '/contact', 5 | views: { 6 | sticky: { 7 | sticky: 'fixed', 8 | template: 'sticky.html', 9 | controller: 'stickyController' 10 | }, 11 | main: { 12 | template: 'contact.html', 13 | controller: 'contactController' 14 | }, 15 | footer: { template: function () { 16 | return '

Sibling view loaded with ' 17 | + 'contact.html above

'; 18 | } 19 | }, 20 | 'main.contactContent': { 21 | template: '

We can also embed a view in another,' 22 | + ' this is in {{file}}

', 23 | controller: ['$scope', function ($scope) { 24 | $scope.file = "contact.html"; 25 | $scope.refresh = function () { 26 | $scope.file = "REFRESHED"; 27 | } 28 | }] 29 | } 30 | } 31 | }); 32 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/demo.js: -------------------------------------------------------------------------------- 1 | var app = angular.module('demo', ['dotjem.routing']); 2 | 3 | app.config(['$stateProvider', function ($stateProvider) { 4 | $stateProvider 5 | .state('home', { 6 | route: '/', 7 | views: { 8 | sticky: { 9 | sticky: 'fixed', 10 | template: 'sticky.html', 11 | controller: 'stickyController' 12 | }, 13 | main: { template: 'home.html', controller: 'homeController' }, 14 | footer: { template: function () { 15 | return '

Sibling view loaded with ' 16 | + 'home.html above

'; 17 | } 18 | }, 19 | 'main.homeContent': { 20 | template: '

We can also embed a view in another,' 21 | + ' this is in {{file}}

', 22 | controller: ['$scope', function ($scope) { 23 | $scope.file = "home.html"; 24 | $scope.refresh = function () { 25 | $scope.file = "REFRESHED"; 26 | } 27 | }] 28 | } 29 | } 30 | }) 31 | }]); -------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Home

3 |
4 |
-------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/sticky.html: -------------------------------------------------------------------------------- 1 |

Current State: {{ model.state }}

-------------------------------------------------------------------------------- /gh-pages/samples/concepts/views/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/001/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Bootstrap starter template

3 |

4 | Use this document as a way to quickly start any new project. 5 |
6 | All you get is this text and a mostly barebones HTML document. 7 |

8 |
-------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/002/application.js: -------------------------------------------------------------------------------- 1 | app.config(['$stateProvider', function($stateProvider) { 2 | $stateProvider 3 | .state('home', { 4 | route: '/', 5 | views: { 6 | main: { template: 'home.html' } 7 | } 8 | }); 9 | }]); 10 | -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/003/application.js: -------------------------------------------------------------------------------- 1 | $stateProvider 2 | .state('about', { 3 | route: '/about', 4 | views: { 5 | main: { template: 'about.html' } 6 | } 7 | }); 8 | 9 | $stateProvider 10 | .state('contact', { 11 | route: '/contact', 12 | views: { 13 | main: { template: 'contact.html' } 14 | } 15 | }); -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/final/about.html: -------------------------------------------------------------------------------- 1 |

About Page

2 |

3 | Vidit nusquam nostrum ad ius, mei ipsum accusam 4 | delectus an. Dictas urbanitas eam ei, quo ex nonumy 5 | tincidunt. No tractatos concludaturque sea, ea duis 6 | saperet quo, congue epicurei nam ad. Mea te feugait 7 | facilisis, per ea dicit corpora, nam ex augue 8 | regione utroque. At est omnes habemus intellegam, 9 | ad wisi velit eam. 10 |

-------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/final/application.js: -------------------------------------------------------------------------------- 1 | var app = angular.module('tutorial', ['dotjem.routing']); 2 | 3 | app.config(['$stateProvider', function($stateProvider) { 4 | $stateProvider 5 | .state('home', { 6 | route: '/', 7 | views: { 8 | main: { template: 'home.html' } 9 | } 10 | }); 11 | 12 | $stateProvider 13 | .state('about', { 14 | route: '/about', 15 | views: { 16 | main: { template: 'about.html' } 17 | } 18 | }); 19 | 20 | $stateProvider 21 | .state('contact', { 22 | route: '/contact', 23 | views: { 24 | main: { template: 'contact.html' } 25 | } 26 | }); 27 | }]); 28 | 29 | app.controller('siteController', ['$scope', '$state', 30 | function($scope, $state){ 31 | $scope.isActive = $state.isActive; 32 | }]) -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/final/contact.html: -------------------------------------------------------------------------------- 1 |

Contact Page

2 |

3 | Te eam diam copiosae posidonium. Qui facilisi 4 | repudiare maiestatis id. Ut quo dolores abhorreant. 5 | Persius admodum vivendum et sed. 6 |

-------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/final/home.html: -------------------------------------------------------------------------------- 1 |
2 |

Bootstrap starter template

3 |

Use this document as a way to quickly start any new project.
All you get is this text and a mostly barebones HTML document.

4 |
-------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/final/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/init/application.js: -------------------------------------------------------------------------------- 1 | var app = angular.module('tutorial', ['dotjem.routing']); -------------------------------------------------------------------------------- /gh-pages/samples/tutorials/step1/init/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /gh-pages/scripts/_references.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | /// -------------------------------------------------------------------------------- /gh-pages/scripts/directives/dxSyntax.js: -------------------------------------------------------------------------------- 1 | /// 2 | angular.module('dotjem.routing.pages').directive('dxSyntax', [ 3 | 'syntax', function (syntax) { 4 | return { 5 | restrict: 'ECA', 6 | terminal: false, 7 | link: function (scope, element) { 8 | syntax.Highlight(element); 9 | } 10 | }; 11 | } 12 | ]); 13 | -------------------------------------------------------------------------------- /gh-pages/scripts/directives/dxSyntax.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | angular.module('dotjem.routing.pages').directive('dxSyntax', [ 4 | 'syntax', function(syntax){ 5 | return { 6 | restrict: 'ECA', 7 | terminal: false, 8 | link: function (scope, element) { 9 | syntax.Highlight(element); 10 | } 11 | }; 12 | } 13 | ]); 14 | -------------------------------------------------------------------------------- /gh-pages/scripts/services/plunkr.js: -------------------------------------------------------------------------------- 1 | /// 2 | angular.module('dotjem.routing.pages').service('plunkr', [ 3 | '$document', function ($document) { 4 | function post(fields) { 5 | var form = angular.element('
'); 6 | angular.forEach(fields, function (value, name) { 7 | var input = angular.element(''); 8 | input.attr('value', value); 9 | form.append(input); 10 | }); 11 | $document.find('body').append(form); 12 | form[0].submit(); 13 | form.remove(); 14 | } 15 | 16 | return function (files, tags) { 17 | var postData = {}; 18 | 19 | angular.forEach(files, function (file) { 20 | postData['files[' + file.name + ']'] = file.source; 21 | }); 22 | 23 | angular.forEach(tags, function (tag, index) { 24 | postData['tags[' + index + ']'] = tag; 25 | }); 26 | 27 | postData.private = true; 28 | postData.description = 'AngularJS Example Plunkr'; 29 | 30 | post(postData); 31 | }; 32 | } 33 | ]); 34 | -------------------------------------------------------------------------------- /gh-pages/scripts/services/plunkr.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | angular.module('dotjem.routing.pages').service('plunkr', [ 4 | '$document', function($document){ 5 | function post(fields) { 6 | var form = angular.element('
'); 7 | angular.forEach(fields, function(value, name) { 8 | var input = angular.element(''); 9 | input.attr('value', value); 10 | form.append(input); 11 | }); 12 | $document.find('body').append(form); 13 | form[0].submit(); 14 | form.remove(); 15 | } 16 | 17 | return function(files, tags){ 18 | var postData = {}; 19 | 20 | angular.forEach(files, function(file) { 21 | postData['files[' + file.name + ']'] = file.source; 22 | }); 23 | 24 | angular.forEach(tags, function(tag, index){ 25 | postData['tags['+index+']'] = tag; 26 | }); 27 | 28 | postData.private = true; 29 | postData.description = 'AngularJS Example Plunkr'; 30 | 31 | 32 | post(postData); 33 | }; 34 | } 35 | ]) 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /gh-pages/scripts/services/scriptLoader.js: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | angular.module('dotjem.routing.pages').service('scriptLoader', [function () { 4 | var $service = {}; 5 | var loaded = {}; 6 | 7 | $service.LoadScript = function (url) { 8 | if (!(url in loaded)) { 9 | $.ajax(url, { 10 | dataType: "script", 11 | success: function () { 12 | loaded[url] = url; 13 | }, 14 | async: false, 15 | cache: true 16 | }); 17 | } 18 | }; 19 | 20 | return $service; 21 | }]); 22 | -------------------------------------------------------------------------------- /gh-pages/scripts/services/scriptLoader.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | interface IScriptLoaderService { 4 | LoadScript(url: string); 5 | } 6 | 7 | angular.module('dotjem.routing.pages').service('scriptLoader', [ 8 | function (): IScriptLoaderService { 9 | var $service: any = {}; 10 | var loaded = {}; 11 | 12 | $service.LoadScript = function (url: string) { 13 | if (!(url in loaded)) { 14 | $.ajax(url, { 15 | dataType: "script", 16 | success: () => { loaded[url] = url; }, 17 | async: false, 18 | cache: true 19 | }); 20 | } 21 | } 22 | 23 | return $service; 24 | }]); -------------------------------------------------------------------------------- /gh-pages/styles/dxdocs.css: -------------------------------------------------------------------------------- 1 | .dx-docs-menu{ 2 | } 3 | .dx-docs-menu a{ 4 | color: #000; 5 | } 6 | .dx-docs-menu a:hover{ 7 | text-decoration: none; 8 | color: #c60; 9 | } 10 | .dx-docs-menu ul li { 11 | padding: 0 20px 0 42px; 12 | margin: 0 -15px; 13 | } 14 | .dx-docs-menu li:hover { 15 | background: #fafafa; 16 | } 17 | .dx-docs ul.methods, 18 | .dx-docs ul.properties, 19 | .dx-docs ul.events 20 | { 21 | padding: 0; 22 | } 23 | .dx-docs ul.methods > li, 24 | .dx-docs ul.properties > li, 25 | .dx-docs ul.events > li { 26 | margin-bottom: 20px; 27 | background-color: #ffffff; 28 | border: 1px solid #dddddd; 29 | border-radius: 0; 30 | -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); 31 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); 32 | list-style: none; 33 | } 34 | .dx-docs ul.methods li > h3, 35 | .dx-docs ul.properties li > h3, 36 | .dx-docs ul.events li > h3 { 37 | padding: 10px 15px; 38 | color: #333333; 39 | background-color: #f5f5f5; 40 | border-color: #dddddd; 41 | border-bottom: 1px solid transparent; 42 | margin: 0; 43 | font-size: 20px; 44 | } 45 | .dx-docs ul.methods li > div, 46 | .dx-docs ul.properties li > div, 47 | .dx-docs ul.events li > div { 48 | padding: 15px; 49 | } 50 | .dx-docs h1 > div { 51 | font-weight: normal; 52 | line-height: 1; 53 | color: #999999; 54 | font-size: 65%; 55 | display: inline-block; 56 | } 57 | .dx-docs a.type-hint{ 58 | background-color: #c60; 59 | margin: 0 3px; 60 | } 61 | .dx-docs a.type-hint-object{ background-color: #c60; } 62 | .dx-docs a.type-hint-string{ background-color: #c60; } 63 | .dx-docs a.type-hint-function{ background-color: #c60; } 64 | 65 | -------------------------------------------------------------------------------- /gh-pages/styles/dxsample.css: -------------------------------------------------------------------------------- 1 | 2 | .dx-example { 3 | border: 1px solid #555; 4 | background-color: #404040; 5 | color: #fff; 6 | margin-bottom: 10px; 7 | } 8 | .dx-example-file-header { 9 | margin-top: 5px; 10 | } 11 | .dx-example-file-group { 12 | border-bottom: 1px dotted #555; 13 | margin-top: 10px; 14 | #cursor: pointer; 15 | } 16 | .dx-example-file-list > ul{ 17 | margin-left: 12px; 18 | } 19 | .dx-example-file-list li a{ 20 | cursor: pointer; 21 | color: #eee; 22 | } 23 | .dx-example-file-group .caret { 24 | margin: 8px 5px; 25 | } 26 | .dx-example .btn { 27 | margin-top: 5px; 28 | } 29 | 30 | .dx-example.scrollable .syntaxhighlighter { 31 | max-height: 200px !important; 32 | overflow: auto !important; 33 | } -------------------------------------------------------------------------------- /gh-pages/templates/concepts/overview.html: -------------------------------------------------------------------------------- 1 |

Concepts

-------------------------------------------------------------------------------- /gh-pages/templates/directives/dxSampleTemplate.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
    4 |
  • 5 | {{ val.title }} 6 |
  • 7 |
      8 |
    • 9 |
    10 |
11 |
12 |
13 |
14 |
15 |

Edit in Plunkr

16 |
17 |
-------------------------------------------------------------------------------- /gh-pages/templates/tutorials/step0.html: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 |
17 | 18 |
19 | 30 |
-------------------------------------------------------------------------------- /gh-pages/templates/tutorials/step3.controller.html: -------------------------------------------------------------------------------- 1 | CONTROLLER 2 | 3 |
4 | 8 |
-------------------------------------------------------------------------------- /gh-pages/templates/tutorials/step4.nestedstates.html: -------------------------------------------------------------------------------- 1 | NESTING 2 | 3 |
4 | 8 |
-------------------------------------------------------------------------------- /gh-pages/templates/tutorials/step5.routeparams.html: -------------------------------------------------------------------------------- 1 | ROUTE PARAMS 2 | 3 |
4 | 8 |
-------------------------------------------------------------------------------- /gh-pages/templates/tutorials/step6.transitions.html: -------------------------------------------------------------------------------- 1 | TRANSISTION 2 | 3 |
4 | 8 |
-------------------------------------------------------------------------------- /grunt-start.bat: -------------------------------------------------------------------------------- 1 | grunt.cmd -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 |  Sample Browser 2 | 3 |

Angular Routing

-------------------------------------------------------------------------------- /lib/angular/angular-cookies-1.0.d.ts: -------------------------------------------------------------------------------- 1 | /// Type definitions for Angular JS 1.0 (ngCookies module) 2 | // Project: http://angularjs.org 3 | // Definitions by: Diego Vilar 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | 7 | /// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // ngCookies module (angular-cookies.js) 11 | /////////////////////////////////////////////////////////////////////////////// 12 | module ng.cookies { 13 | 14 | /////////////////////////////////////////////////////////////////////////// 15 | // CookieService 16 | // see http://docs.angularjs.org/api/ngCookies.$cookies 17 | /////////////////////////////////////////////////////////////////////////// 18 | interface ICookiesService {} 19 | 20 | /////////////////////////////////////////////////////////////////////////// 21 | // CookieStoreService 22 | // see http://docs.angularjs.org/api/ngCookies.$cookieStore 23 | /////////////////////////////////////////////////////////////////////////// 24 | interface ICookieStoreService { 25 | get(key: string): any; 26 | put(key: string, value: any): void; 27 | remove(key: string): void; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /lib/angular/angular-cookies.d.ts: -------------------------------------------------------------------------------- 1 | /// Type definitions for Angular JS 1.2 (ngCookies module) 2 | // Project: http://angularjs.org 3 | // Definitions by: Diego Vilar 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | 7 | /// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // ngCookies module (angular-cookies.js) 11 | /////////////////////////////////////////////////////////////////////////////// 12 | declare module ng.cookies { 13 | 14 | /////////////////////////////////////////////////////////////////////////// 15 | // CookieService 16 | // see http://docs.angularjs.org/api/ngCookies.$cookies 17 | /////////////////////////////////////////////////////////////////////////// 18 | interface ICookiesService {} 19 | 20 | /////////////////////////////////////////////////////////////////////////// 21 | // CookieStoreService 22 | // see http://docs.angularjs.org/api/ngCookies.$cookieStore 23 | /////////////////////////////////////////////////////////////////////////// 24 | interface ICookieStoreService { 25 | get(key: string): any; 26 | put(key: string, value: any): void; 27 | remove(key: string): void; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /lib/angular/angular-route-tests.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /** 4 | * @license HTTP Auth Interceptor Module for AngularJS 5 | * (c) 2013 Jonathan Park @ Daptiv Solutions Inc 6 | * License: MIT 7 | */ 8 | 9 | declare var $routeProvider: ng.route.IRouteProvider; 10 | $routeProvider 11 | .when('/projects/:projectId/dashboard',{ 12 | controller: '' 13 | }) 14 | .otherwise({redirectTo: '/'}); 15 | -------------------------------------------------------------------------------- /lib/angular/angular-sanitize-1.0.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for Angular JS 1.0 (ngSanitize module) 2 | // Project: http://angularjs.org 3 | // Definitions by: Diego Vilar 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | 7 | /// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // ngSanitize module (angular-sanitize.js) 11 | /////////////////////////////////////////////////////////////////////////////// 12 | module ng.sanitize { 13 | 14 | /////////////////////////////////////////////////////////////////////////// 15 | // SanitizeService 16 | // see http://docs.angularjs.org/api/ngSanitize.$sanitize 17 | /////////////////////////////////////////////////////////////////////////// 18 | interface ISanitizeService { 19 | (html: string): string; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /lib/angular/angular-sanitize-tests.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | var shouldBeString: string; 4 | 5 | declare var $sanitizeService: ng.sanitize.ISanitizeService; 6 | shouldBeString = $sanitizeService(shouldBeString); 7 | 8 | declare var $linky: ng.sanitize.filter.ILinky; 9 | shouldBeString = $linky(shouldBeString); 10 | shouldBeString = $linky(shouldBeString, shouldBeString); 11 | -------------------------------------------------------------------------------- /lib/angular/angular-sanitize.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for Angular JS 1.2 (ngSanitize module) 2 | // Project: http://angularjs.org 3 | // Definitions by: Diego Vilar 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | 7 | /// 8 | 9 | /////////////////////////////////////////////////////////////////////////////// 10 | // ngSanitize module (angular-sanitize.js) 11 | /////////////////////////////////////////////////////////////////////////////// 12 | declare module ng.sanitize { 13 | 14 | /////////////////////////////////////////////////////////////////////////// 15 | // SanitizeService 16 | // see http://docs.angularjs.org/api/ngSanitize.$sanitize 17 | /////////////////////////////////////////////////////////////////////////// 18 | interface ISanitizeService { 19 | (html: string): string; 20 | } 21 | 22 | /////////////////////////////////////////////////////////////////////////// 23 | // Filters included with the ngSanitize 24 | // see https://github.com/angular/angular.js/tree/v1.2.0/src/ngSanitize/filter 25 | /////////////////////////////////////////////////////////////////////////// 26 | export module filter { 27 | 28 | // Finds links in text input and turns them into html links. 29 | // Supports http/https/ftp/mailto and plain email address links. 30 | // see http://code.angularjs.org/1.2.0/docs/api/ngSanitize.filter:linky 31 | interface ILinky { 32 | (text: string, target?: string): string; 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-routing", 3 | "title": "AngularJS Routing", 4 | "description": "State-based routing and view management for AngularJS", 5 | "version": "0.6.15", 6 | "homepage": "", 7 | "author": { 8 | "name": "dotjem", 9 | "url": "https://github.com/dotJEM" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/dotJEM/angular-routing.git" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/dotJEM/angular-routing/issues" 17 | }, 18 | "licenses": [ 19 | { 20 | "type": "MIT", 21 | "url": "https://github.com/dotJEM/angular-routing/blob/master/LICENSE" 22 | } 23 | ], 24 | "dependencies": {}, 25 | "devDependencies": { 26 | "grunt": "~0.4.2", 27 | "grunt-typescript": "~0.2.7", 28 | "grunt-contrib-concat": "~0.3.0", 29 | "grunt-contrib-clean": "~0.5.0", 30 | "grunt-contrib-uglify": "~0.2.7", 31 | "grunt-contrib-watch": "~0.5.2", 32 | "grunt-contrib-connect": "~0.6.0", 33 | "grunt-contrib-copy": "~0.5.0", 34 | "grunt-ngdocs": "~0.1.9", 35 | "grunt-karma": "~0.6.2", 36 | "grunt-tslint": "~0.4.0" 37 | }, 38 | "keywords": [] 39 | } -------------------------------------------------------------------------------- /resources.md: -------------------------------------------------------------------------------- 1 | # Resources 2 | 3 | ## Regular Expressions 4 | 5 | Regular Expression to extract parameters with converters: 6 | 7 | - `/((:(\w+))|(\{((\w+)(\((.*?)\))?:)?(\w+)\}))(/)?` 8 | 9 | regex utilities: 10 | 11 | - http://gskinner.com/RegExr/ 12 | - http://regexvisualizer.apphb.com/ 13 | - http://www.regexper.com/ 14 | 15 | examples: 16 | 17 | ``` 18 | /home/:param/here/:another 19 | /home/:param/here 20 | /home/:param 21 | 22 | /Book/:book/Chapter/:chapter 23 | /Book/Chess/Chapter/10 24 | 25 | /home/{param}/here/{another} 26 | /home/{param}/here 27 | /home/{param} 28 | 29 | /home/{regex:param}/here/{another} 30 | /home/{regex():param}/here 31 | /home/{regex(aregularexpresion):param}/next/{regex(aregularexpresion):param} 32 | /home/{regex('\w):p\}','g'):param}/next/{regex(aregularexpresion):param} 33 | 34 | /home/{regex({ pattern: '\w):p\}', flags: 'g' }):param}/next/{regex(aregularexpresion):param} 35 | 36 | $& 37 | ^\\/Book/([^\\/]*)/Chapter/([^\\/]*)/?$ 38 | /((:(\w+))|(\{((\w+)(\((.*?)\))?:)?(\w+)\}))(/)? 39 | ``` 40 | 41 | - http://gskinner.com/RegExr/?3427i 42 | 43 | ## Testing Resources 44 | 45 | - http://net.tutsplus.com/tutorials/javascript-ajax/testing-your-javascript-with-jasmine/ 46 | 47 | ## Promises 48 | 49 | - https://gist.github.com/domenic/3889970 50 | 51 | ## Fiddles 52 | 53 | - http://jsfiddle.net/sY9RB/3/ 54 | 55 | ## Other stuff 56 | 57 | - http://michaux.ca/articles/lazy-function-definition-pattern 58 | - http://jsfiddle.net/Q7wR8/8/ 59 | 60 | ## Continous Ingegration 61 | 62 | These options are considered: 63 | 64 | - Buildhive: https://buildhive.cloudbees.com/ ? 65 | - Travis: https://travis-ci.org/dotJEM/angular-routing ? -> https://travis-ci.org/dotJEM/angular-routing/builds 66 | - Thoughtworks GO: http://www.thoughtworks-studios.com/ (Need to host that self) 67 | - Others? -------------------------------------------------------------------------------- /router.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "router", "router.csproj", "{ADA65F5B-B633-45D1-8EF9-00EDE91E58D5}" 5 | EndProject 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6144C6A0-D37C-4C47-A074-D46B740BB851}" 7 | ProjectSection(SolutionItems) = preProject 8 | test-start.bat = test-start.bat 9 | EndProjectSection 10 | EndProject 11 | Global 12 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 13 | Debug|Any CPU = Debug|Any CPU 14 | Release|Any CPU = Release|Any CPU 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {ADA65F5B-B633-45D1-8EF9-00EDE91E58D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {ADA65F5B-B633-45D1-8EF9-00EDE91E58D5}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {ADA65F5B-B633-45D1-8EF9-00EDE91E58D5}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {ADA65F5B-B633-45D1-8EF9-00EDE91E58D5}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /src/directives/jemAnchor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /** 3 | * @ngdoc directive 4 | * @name dotjem.routing.directive:jemAnchor 5 | * @restrict AC 6 | * 7 | * @description 8 | * Provides an anchor point for the {@link dotjem.routing.$scroll $scroll} service to use. 9 | * 10 | * @element ANY 11 | * @param {string} jemAnchor|id Identifier of the anchor 12 | */ 13 | /** 14 | * @ngdoc directive 15 | * @name dotjem.routing.directive:id 16 | * @restrict AC 17 | * 18 | * @description 19 | * Provides an anchor point for the {@link dotjem.routing.$scroll $scroll} service to use. 20 | * 21 | * @element ANY 22 | * @param {string} jemAnchor|id Identifier of the anchor 23 | */ 24 | declare var jemAnchorDirective: any[]; 25 | -------------------------------------------------------------------------------- /src/directives/jemLink.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /** 3 | * @ngdoc directive 4 | * @name dotjem.routing.directive:sref 5 | * @restrict AC 6 | * 7 | * @description 8 | * Provides a link to a state. 9 | * 10 | * @element ANY 11 | * @param {string} params Parameters for the state link. 12 | * @param {string} activeClass Class to add when the state targeted is active. 13 | */ 14 | declare var jemLinkDirective: any[]; 15 | -------------------------------------------------------------------------------- /src/directives/jemView.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | interface IViewScope extends ng.IScope { 3 | refresh?: (data?: any) => void; 4 | } 5 | /** 6 | * @ngdoc directive 7 | * @name dotjem.routing.directive:jemView 8 | * @restrict ECA 9 | * 10 | * @description 11 | * # Overview 12 | * `jemView` is a directive that complements the {@link dotjem.routing.$state $state} service by 13 | * including the rendered template of the current state into the main layout (`index.html`) file. 14 | * Every time the current route changes, the included view changes with it according to the 15 | * configuration of the `$state` service. 16 | * 17 | * # animations 18 | * - enter - animation is used to bring new content into the browser. 19 | * - leave - animation is used to animate existing content away. 20 | * 21 | * The enter and leave animation occur concurrently. 22 | * 23 | * @param {string} jemView|name Name of the view 24 | * @param {string} loader Url to a template to display while the view is prepared. 25 | */ 26 | /** 27 | * @ngdoc event 28 | * @name dotjem.routing.directive:jemView#$viewContentLoaded 29 | * @eventOf dotjem.routing.directive:jemView 30 | * 31 | * @eventType emit on the current jemView scope 32 | * 33 | * @description 34 | * Emitted every time the jemView content is reloaded. 35 | */ 36 | /** 37 | * @ngdoc event 38 | * @name dotjem.routing.directive:jemView#$refresh 39 | * @eventOf dotjem.routing.directive:jemView 40 | * 41 | * @eventType broadcast on the current jemView scope 42 | * 43 | * @description 44 | * This event is broadcasted on the view scope unless the view scope defines a refresh function. 45 | *
46 | * Refresh happens for sticky views when the sticky flag remains the same during an update. 47 | * 48 | * @param {Object} angularEvent Synthetic event object. 49 | * @param {string} name The name of the view where the broadcast originated. 50 | * @param {Object} name Any data that may have been provided for a refresh. 51 | */ 52 | declare var jemViewDirective: any[]; 53 | -------------------------------------------------------------------------------- /src/filters/isActiveState.ts: -------------------------------------------------------------------------------- 1 | angular.module('dotjem.routing') 2 | .filter('isActiveState', ['$state', function ($state) { 3 | function isActiveState(state, params) { 4 | return $state.isActive(state, params); 5 | }; 6 | (isActiveState).$stateful = true; 7 | return isActiveState; 8 | }]); -------------------------------------------------------------------------------- /src/filters/isCurrentState.ts: -------------------------------------------------------------------------------- 1 | angular.module('dotjem.routing') 2 | .filter('isCurrentState', ['$state', function ($state) { 3 | function isCurrentState(state, params) { 4 | return $state.is(state, params); 5 | }; 6 | (isCurrentState).$stateful = true; 7 | return isCurrentState; 8 | }]); -------------------------------------------------------------------------------- /src/inject.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | interface IInjectFn { 3 | invoker(locals: any): any; 4 | } 5 | declare var $InjectProvider: any[]; 6 | declare class InjectFn implements IInjectFn { 7 | private fn; 8 | private $inject; 9 | private static FN_ARGS; 10 | private static FN_ARG_SPLIT; 11 | private static FN_ARG; 12 | private static STRIP_COMMENTS; 13 | private dependencies; 14 | private func; 15 | constructor(fn: any, $inject: ng.auto.IInjectorService); 16 | public invoker(locals: any): any; 17 | } 18 | -------------------------------------------------------------------------------- /src/interfaces/state.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dotJEM/angular-routing/85386d5f86d8b8a523ca1ca6d0d857d7cd9764a4/src/interfaces/state.d.ts -------------------------------------------------------------------------------- /src/legacy/prefix: -------------------------------------------------------------------------------- 1 | /** 2 | * @license dotJEM Angular Routing 3 | * (c) 2012-2013 dotJEM (Jens Melgaard) 4 | * License: MIT 5 | * 6 | * @module angular-routing 7 | */ 8 | (function(window, document, undefined) { -------------------------------------------------------------------------------- /src/legacy/suffix: -------------------------------------------------------------------------------- 1 | })(window, document); -------------------------------------------------------------------------------- /src/legacy/templateDecorator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/pipeline.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare function $PipelineProvider(): void; 3 | -------------------------------------------------------------------------------- /src/prefix: -------------------------------------------------------------------------------- 1 | /** 2 | * @license dotJEM Angular Routing 3 | * (c) 2012-2013 dotJEM (Jens Melgaard) 4 | * License: MIT 5 | * 6 | * @ngdoc module 7 | * @module dotjem.routing 8 | * 9 | * @description 10 | * Provides an advanced replacement for the standard angular routing module. 11 | */ 12 | var dotjem; 13 | (function(window, document, dotjem, undefined) { -------------------------------------------------------------------------------- /src/refs.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | /// 5 | 6 | /// -------------------------------------------------------------------------------- /src/resolve.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare var $ResolveProvider: { 3 | (): void; 4 | }[]; 5 | -------------------------------------------------------------------------------- /src/route.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | interface ISegment { 3 | name: string; 4 | converter: () => (arg: any) => any; 5 | } 6 | interface IExpression { 7 | exp?: RegExp; 8 | segments?: ISegment[]; 9 | params?: any; 10 | name?: string; 11 | } 12 | interface IRoute { 13 | self: dotjem.routing.IRoute; 14 | redirect: ($location: any, params: any) => any; 15 | match: (path: string) => any; 16 | } 17 | declare module ng { 18 | interface IBrowserService { 19 | baseHref(): string; 20 | } 21 | } 22 | /** 23 | * @ngdoc object 24 | * @name dotjem.routing.$routeProvider 25 | * 26 | * @description 27 | * Used for configuring routes. See {@link dotjem.routing.$route $route} for an example. 28 | */ 29 | declare var $RouteProvider: any[]; 30 | -------------------------------------------------------------------------------- /src/scroll.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare var $ScrollProvider: any[]; 3 | -------------------------------------------------------------------------------- /src/state/refs.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// -------------------------------------------------------------------------------- /src/state/state.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | declare class State { 5 | private _name; 6 | private _fullname; 7 | private _parent; 8 | private _children; 9 | private _self; 10 | private _reloadOnOptional; 11 | private _route; 12 | private _scrollTo; 13 | public children : any; 14 | public fullname : string; 15 | public name : string; 16 | public reloadOnOptional : boolean; 17 | public self : dotjem.routing.IRegisteredState; 18 | public parent : State; 19 | public route : any; 20 | public root : State; 21 | public scrollTo : any; 22 | public views : any; 23 | public resolve : any; 24 | constructor(_name: string, _fullname: string, _self: dotjem.routing.IState, _parent?: State); 25 | public add(child: State): State; 26 | public resolveRoute(): string; 27 | public is(state: string): boolean; 28 | public clear(route: any): void; 29 | public isActive(state: string): any; 30 | } 31 | -------------------------------------------------------------------------------- /src/state/stateBrowser.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare class StateBrowser { 3 | private root; 4 | private nameRegex; 5 | private siblingRegex; 6 | private indexRegex; 7 | constructor(root: State); 8 | public lookup(path: string, stop?: number): State; 9 | public resolve(origin: any, path: any, wrap?: any): State; 10 | private selectSibling(index, selected); 11 | private select(origin, exp, selected); 12 | } 13 | -------------------------------------------------------------------------------- /src/state/stateComparer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | declare class StateComparer { 4 | public isSameState(from: any, to: any): boolean; 5 | public isEquals(from: any, to: any): boolean; 6 | public path(from: any, to: any, fromParams: any, toParams: any, options?: any): any; 7 | public toArray(state: any, params: any, activate: any): any[]; 8 | public extractParams(params: any, current: any): {}; 9 | } 10 | -------------------------------------------------------------------------------- /src/state/stateFactory.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | declare class StateFactory { 5 | private routes; 6 | private transitions; 7 | constructor(routes: dotjem.routing.IRouteProvider, transitions: dotjem.routing.ITransitionProvider); 8 | public createRoute(stateRoute: string, parentRoute: any, stateName: string, reloadOnSearch: boolean): dotjem.routing.IWhenRouteProvider; 9 | public createState(fullname: string, state: dotjem.routing.IState, parent?: State): State; 10 | } 11 | -------------------------------------------------------------------------------- /src/state/stateRules.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare class StateRules { 3 | private static nameValidation; 4 | private static targetValidation; 5 | static validateName(name: string): void; 6 | static validateTarget(target: string): boolean; 7 | } 8 | -------------------------------------------------------------------------------- /src/state/stateRules.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | class StateRules { 4 | private static nameValidation = /^\w+(\.\w+)*?$/; 5 | private static targetValidation = /^\$?\w+(\.\w+)*(\.[*])?$/; 6 | 7 | public static validateName(name: string) { 8 | if (!StateRules.nameValidation.test(name) || name === rootName) { 9 | throw new Error("Invalid name: '" + name + "'."); 10 | } 11 | } 12 | 13 | public static validateTarget(target: string): boolean { 14 | if (target === '*' || StateRules.targetValidation.test(target)) { 15 | return true; 16 | } 17 | return false; 18 | } 19 | } -------------------------------------------------------------------------------- /src/state/stateUrlBuilder.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | declare class StateUrlBuilder { 6 | private route; 7 | constructor(route: dotjem.routing.IRouteService); 8 | public buildUrl(current: any, target: any, params?: any, base?: any): string; 9 | } 10 | -------------------------------------------------------------------------------- /src/state/stateUrlBuilder.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /// 4 | /// 5 | /// 6 | 7 | class StateUrlBuilder { 8 | 9 | constructor(private route: dotjem.routing.IRouteService) { 10 | } 11 | 12 | public buildUrl(current, target, params?, base?): string { 13 | var c = current; 14 | 15 | if (!target.route) { 16 | throw new Error("Can't build url for a state that doesn't have a url defined."); 17 | } 18 | //TODO: Find parent with route and return? 19 | 20 | //TODO: This is very similar to what we do in buildStateArray -> extractParams, 21 | // maybe we can refactor those together 22 | var paramsObj = {}, 23 | allFrom = c && c.$params.$all || {}; 24 | 25 | forEach(target.route.params, (param, name) => { 26 | if (name in allFrom) { 27 | paramsObj[name] = allFrom[name]; 28 | } 29 | }); 30 | 31 | return this.route.format(target.route.route, extend(paramsObj, params || {}), base); 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /src/suffix: -------------------------------------------------------------------------------- 1 |  2 | //NOTE: Expose for testing 3 | dotjem.State = State; 4 | dotjem.StateBrowser = StateBrowser; 5 | dotjem.StateComparer = StateComparer; 6 | dotjem.StateFactory = StateFactory; 7 | dotjem.StateRules = StateRules; 8 | dotjem.StateUrlBuilder = StateUrlBuilder; 9 | dotjem.RootName = rootName; 10 | 11 | })(window, document, dotjem || (dotjem = {})); -------------------------------------------------------------------------------- /src/template.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare function $TemplateProvider(): void; 3 | -------------------------------------------------------------------------------- /src/view.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare function $ViewProvider(): void; 3 | -------------------------------------------------------------------------------- /test-dev-full-jquery-config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | config.set({ 3 | browsers: ['Chrome'], 4 | frameworks: ['jasmine'], 5 | logLevel: config.LOG_INFO, 6 | loggers: [{ type: 'console' }], 7 | reporters: ['dots'], 8 | autoWatch: true, 9 | port: 9100, 10 | files: [ 11 | 'lib/jquery/impl/jquery-1.9.1.js', 12 | 'lib/angular/impl/angular.js', 13 | 'lib/angular/impl/angular-mocks.js', 14 | 15 | 'build/angular-routing.js', 16 | 'build/angular-routing.legacy.js', 17 | 18 | //'build/test/util/**/*.js', 19 | //'build/test/testcommon.js', 20 | 'build/test/**/*.js' 21 | ], 22 | }); 23 | }; 24 | -------------------------------------------------------------------------------- /test-dev-jqlite-config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | config.set({ 3 | //browsers: ['PhantomJS'], 4 | browsers: ['Chrome'], 5 | frameworks: ['jasmine'], 6 | logLevel: config.LOG_INFO, 7 | loggers: [{ type: 'console' }], 8 | reporters: ['progress'], 9 | autoWatch: true, 10 | port: 9100, 11 | files: [ 12 | 'lib/angular/impl/angular.js', 13 | 'lib/angular/impl/angular-mocks.js', 14 | 15 | 'src/common.js', 16 | 'src/route.js', 17 | 'src/stateTransition.js', 18 | 'src/state.js', 19 | 'src/pipeline.js', 20 | 'src/resolve.js', 21 | 'src/template.js', 22 | 'src/view.js', 23 | 'src/scroll.js', 24 | 'src/inject.js', 25 | 26 | 'src/state/state.js', 27 | 'src/state/stateBrowser.js', 28 | 'src/state/stateComparer.js', 29 | 'src/state/stateFactory.js', 30 | 'src/state/stateRules.js', 31 | 'src/state/stateUrlBuilder.js', 32 | 33 | 'src/directives/jemView.js', 34 | 'src/directives/jemAnchor.js', 35 | 'src/directives/jemLink.js', 36 | 37 | 'src/filters/isActiveState.js', 38 | 'src/filters/isCurrentState.js', 39 | 40 | 'src/legacy/templateDecorator.js', 41 | 42 | 'test/**/*.js' 43 | ], 44 | }); 45 | }; 46 | -------------------------------------------------------------------------------- /test-dev-jquery-config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | config.set({ 3 | //browsers: ['PhantomJS'], 4 | browsers: ['Chrome'], 5 | frameworks: ['jasmine'], 6 | logLevel: config.LOG_INFO, 7 | loggers: [{ type: 'console' }], 8 | reporters: ['progress'], 9 | autoWatch: true, 10 | port: 9100, 11 | files: [ 12 | 'lib/jQuery/impl/jQuery-1.9.1.min.js', 13 | 'lib/angular/impl/angular.js', 14 | 'lib/angular/impl/angular-mocks.js', 15 | 16 | 17 | 'src/common.js', 18 | 'src/stateTransition.js', 19 | 'src/route.js', 20 | 'src/state.js', 21 | 'src/pipeline.js', 22 | 'src/resolve.js', 23 | 'src/template.js', 24 | 'src/view.js', 25 | 'src/scroll.js', 26 | 'src/inject.js', 27 | 28 | 'src/state/state.js', 29 | 'src/state/stateBrowser.js', 30 | 'src/state/stateComparer.js', 31 | 'src/state/stateFactory.js', 32 | 'src/state/stateRules.js', 33 | 'src/state/stateUrlBuilder.js', 34 | 35 | 'src/directives/jemView.js', 36 | 'src/directives/jemAnchor.js', 37 | 'src/directives/jemLink.js', 38 | 39 | 'src/filters/isActiveState.js', 40 | 'src/filters/isCurrentState.js', 41 | 42 | 'src/legacy/templateDecorator.js', 43 | 44 | 'test/**/*.js' 45 | ], 46 | }); 47 | }; 48 | -------------------------------------------------------------------------------- /test-grunt-jqlite-config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | config.set({ 3 | frameworks: ['jasmine'], 4 | logLevel: config.LOG_INFO, 5 | loggers: [{ type: 'console' }], 6 | reporters: ['dots'], 7 | //browsers: ['PhantomJS'], 8 | browsers: ['Chrome'], 9 | autoWatch: false, 10 | //singleRun: true, 11 | files: [ 12 | 'lib/angular/impl/angular.js', 13 | 'lib/angular/impl/angular-mocks.js', 14 | 15 | 'build/angular-routing.js', 16 | 'build/angular-routing.legacy.js', 17 | 18 | 'build/test/**/*.js' 19 | ], 20 | }); 21 | }; 22 | -------------------------------------------------------------------------------- /test-grunt-jquery-config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | config.set({ 3 | frameworks: ['jasmine'], 4 | logLevel: config.LOG_INFO, 5 | loggers: [{ type: 'console' }], 6 | reporters: ['dots'], 7 | browsers: ['PhantomJS'], 8 | autoWatch: false, 9 | singleRun: true, 10 | files: [ 11 | 'lib/jquery/impl/jquery-1.9.1.js', 12 | 'lib/angular/impl/angular.js', 13 | 'lib/angular/impl/angular-mocks.js', 14 | 15 | 'build/angular-routing.js', 16 | 'build/angular-routing.legacy.js', 17 | 18 | 'build/test/**/*.js' 19 | ], 20 | }); 21 | }; -------------------------------------------------------------------------------- /test-start.bat: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | karma start test-dev-jquery-config.js -------------------------------------------------------------------------------- /test/scrollSpec.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | 'use strict'; 4 | 5 | describe('$scroll', function () { 6 | 'use strict'; 7 | var mock = angular.mock; 8 | 9 | beforeEach(mock.module('dotjem.routing', function () { 10 | return function () { 11 | 12 | }; 13 | })); 14 | 15 | describe('', () => { 16 | it('', function () { 17 | mock.inject(function ($view: dotjem.routing.IViewService) { 18 | 19 | }); 20 | }); 21 | }); 22 | }); -------------------------------------------------------------------------------- /test/state/stateSpec.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | describe('state.state', function () { 4 | 'use strict'; 5 | 6 | //Note: This line below is to be able to run the test cases both on the build output as well 7 | // as the raw source, this is because the solution is wrapped in a function on build. 8 | // It is a bit of a mess though which I am not to fond of, but will have to do for now. 9 | var mod = angular.mock['module']; 10 | var inject = angular.mock.inject; 11 | beforeEach(mod('dotjem.routing', function () { return function () { }; })); 12 | 13 | describe('', () => { 14 | it('', function () { 15 | 16 | 17 | 18 | inject(function ($view: dotjem.routing.IViewService) { 19 | 20 | }); 21 | }); 22 | }); 23 | }); -------------------------------------------------------------------------------- /test/state/stateUrlBuilderSpec.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | describe('state.stateUrlBuilder', function () { 4 | 'use strict'; 5 | 6 | //Note: This line below is to be able to run the test cases both on the build output as well 7 | // as the raw source, this is because the solution is wrapped in a function on build. 8 | // It is a bit of a mess though which I am not to fond of, but will have to do for now. 9 | 10 | var mod = angular.mock['module']; 11 | var inject = angular.mock.inject; 12 | beforeEach(mod('dotjem.routing', function () { return function () { }; })); 13 | 14 | describe('', () => { 15 | it('', function () { 16 | 17 | 18 | 19 | inject(function ($view: dotjem.routing.IViewService) { 20 | 21 | }); 22 | }); 23 | }); 24 | }); -------------------------------------------------------------------------------- /test/util/matchers.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare module jasmine { 3 | interface Matchers { 4 | toHaveProperties(expected): boolean; 5 | toBeMsg(expected, message): boolean; 6 | } 7 | } 8 | 9 | beforeEach(function () { 10 | var jasm: any = jasmine; 11 | this.addMatchers({ 12 | 13 | toHaveProperties: function (expectedProperties) { 14 | var act = this.actual, 15 | fails = []; 16 | 17 | angular.forEach(expectedProperties, function (value, key) { 18 | if (angular.isUndefined(act[key])) { 19 | fails.push("Expected property '" + key + "' could not be found."); 20 | } else if (!angular.equals(act[key], value)) { 21 | fails.push("Expected property '" + key + "' to be '" + jasm.pp(value) + "' but was '" + jasm.pp(act[key]) + "'."); 22 | } 23 | }); 24 | 25 | this.message = function () { 26 | return fails.join("\n\r"); 27 | }; 28 | 29 | return fails.length === 0; 30 | } 31 | 32 | }); 33 | }); 34 | 35 | //getJasmineRequireObj().toBe = function () { 36 | // function toBe() { 37 | // return { 38 | // compare: function (actual, expected) { 39 | // return { 40 | // pass: actual === expected 41 | // }; 42 | // } 43 | // }; 44 | // } 45 | 46 | // return toBe; 47 | //}; -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "class-name": true, 4 | "curly": true, 5 | "eofline": false, 6 | "forin": true, 7 | "indent": false, 8 | "label-position": true, 9 | "label-undefined": true, 10 | "max-line-length": false, 11 | "no-arg": true, 12 | "no-bitwise": true, 13 | "no-console": [true, 14 | "debug", 15 | "info", 16 | "time", 17 | "timeEnd", 18 | "trace" 19 | ], 20 | "no-construct": true, 21 | "no-debugger": true, 22 | "no-duplicate-key": true, 23 | "no-duplicate-variable": true, 24 | "no-empty": false, 25 | "no-eval": true, 26 | "no-string-literal": false, 27 | "no-trailing-whitespace": false, 28 | "no-unreachable": false, 29 | "one-line": [ true, 30 | "check-open-brace", 31 | "check-catch", 32 | "check-else", 33 | "check-whitespace" 34 | ], 35 | "quotemark": false, 36 | "radix": true, 37 | "semicolon": true, 38 | "triple-equals": [true, "allow-null-check"], 39 | "variable-name": false, 40 | "whitespace": false 41 | } 42 | } -------------------------------------------------------------------------------- /version.yaml: -------------------------------------------------------------------------------- 1 | # dotJEM Angular Routing build config file 2 | --- 3 | version: 0.6.15 4 | codename: depricate 5 | stable: 0.6.15 --------------------------------------------------------------------------------