diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/$location | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/$location')
| -rw-r--r-- | docs/content/error/$location/ihshprfx.ngdoc | 17 | ||||
| -rw-r--r-- | docs/content/error/$location/ipthprfx.ngdoc | 8 | ||||
| -rw-r--r-- | docs/content/error/$location/isrcharg.ngdoc | 9 |
3 files changed, 34 insertions, 0 deletions
diff --git a/docs/content/error/$location/ihshprfx.ngdoc b/docs/content/error/$location/ihshprfx.ngdoc new file mode 100644 index 00000000..8acab933 --- /dev/null +++ b/docs/content/error/$location/ihshprfx.ngdoc @@ -0,0 +1,17 @@ +@ngdoc error +@name $location:ihshprfx +@fullName Missing Hash Prefix +@description + +This error occurs when {@link ng.$location $location} service is configured to use a hash prefix but this prefix was not present in a url that the `$location` service was asked to parse. + +For example if you configure `$location` service with prefix `'!'`: +``` +myApp.config(function($locationProvider) { + $locationProvider.prefix('!'); +}); +``` + +If you enter the app at url `http:/myapp.com/#/myView` this error will be throw. + +The correct url for this configuration is `http:/myapp.com/#!/myView` (note the `'!'` after `'#'` symbol). diff --git a/docs/content/error/$location/ipthprfx.ngdoc b/docs/content/error/$location/ipthprfx.ngdoc new file mode 100644 index 00000000..55b75d86 --- /dev/null +++ b/docs/content/error/$location/ipthprfx.ngdoc @@ -0,0 +1,8 @@ +@ngdoc error +@name $location:ipthprfx +@fullName Invalid or Missing Path Prefix +@description + +This error occurs when you configure the {@link ng.$location `$location`} service in the html5 mode, specify a base url for your application via `<base>` element and try to update the location with a path that doesn't match the base prefix. + +To resolve this issue, please check the base url specified via the `<base>` tag in the head of your main html document, as well as the url that you tried to set the location to. diff --git a/docs/content/error/$location/isrcharg.ngdoc b/docs/content/error/$location/isrcharg.ngdoc new file mode 100644 index 00000000..4b60ddd5 --- /dev/null +++ b/docs/content/error/$location/isrcharg.ngdoc @@ -0,0 +1,9 @@ +@ngdoc error +@name $location:isrcharg +@fullName Wrong $location.search() argument type +@description + +To resolve this error, ensure that the first argument for the `$location.search` call is a `string` or an object. +You can use the stack trace associated with this error to identify the call site that caused this issue. + +To learn more, please consult the {@link ng.$location `$location`} api docs. |
