Skip to content

fix(animations): provide fake document object in both AoT and JiT mode #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

sis0k0
Copy link
Contributor

@sis0k0 sis0k0 commented Jan 22, 2018

The fake document object that is needed for the angular animations
should be provided both when using the static platform and the dynamic
one.

Can be tested with
https://github.com/nativescript/ns-ng-animation-examples.

// 1
git clone https://github.com/nativescript/ns-ng-animation-examples

// 2
tns run android --bundle --env.aot

// 3
// Navigate to the first example and expect the button to animate to
opacity 0 when tapped.

fixes #1163

The fake document object that is needed for the angular animations
should be provided both when using the static platform and the dynamic
one.

Can be tested with
https://github.com/nativescript/ns-ng-animation-examples.
```bash
// 1
git clone https://github.com/nativescript/ns-ng-animation-examples

// 2
tns run android --bundle --env.aot

// 3
// Navigate to the first example and expect the button to animate to
opacity 0 when tapped.
```

fixes #1163
@ghost ghost assigned sis0k0 Jan 22, 2018
@ghost ghost added the in progress label Jan 22, 2018
@sis0k0 sis0k0 merged commit 040e0e3 into master Jan 23, 2018
@sis0k0 sis0k0 deleted the vlaeva/move-fake-document branch January 23, 2018 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AnimationBuilder not working in a child component when compiled with AOT
3 participants