You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/faq/runtime.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,39 @@ contributors:
15
15
16
16
There are several different reasons this can happen. If you are unable to find a solution on the [Ionic forums](https://forum.ionicframework.com), make sure:
17
17
18
-
- Root `@Component` has a `template` or `templateUrl`.
19
-
- Root `@Component` template has an `<ion-nav>` with a `root` property:
18
+
- Polyfills are not included for older browser/versions of android
19
+
20
+
For projects with `@angular/[email protected]` or above, polyfills will automatically be included. For project created before that, polyfills need to be manually enabled.
21
+
22
+
In `src/polyfills.ts`, you must enabled all ES6 polyfills for Android 4.4 support.
23
+
24
+
Alternatively, a project could be updated to use the latest release of the `@angular/cli` package & `@angular-devkit` packages and include the `es5BrowserSupport` option in the `angular.json`'s build options object:
25
+
26
+
```diff
27
+
"input": "src/global.scss"
28
+
}
29
+
],
30
+
- "scripts": []
31
+
+ "scripts": [],
32
+
+ "es5BrowserSupport": true
33
+
},
34
+
"configurations": {
35
+
"production": {
36
+
```
37
+
38
+
This will automatically include the polyfills for older browsers that need them.
39
+
20
40
21
-
```html
22
-
<ion-nav[root]="rootPage"></ion-nav>
23
-
```
24
41
25
42
## Directive Not Working
26
43
27
44
> Why is my custom component/directive not working?
28
45
29
46
There are a few things you can check. Make sure:
30
47
31
-
- You include it in the `directives` array of the `@Component` you want to use it in (only if your ionic-angular version is below RC0).
32
48
- Your selector doesn't have any misspellings.
33
49
- You're using the selector correctly as an attribute, element or class.
34
-
- Your selector has the [proper syntax](http://learnangular2.com/components/):
0 commit comments