Skip to content

Commit 8c6f9bb

Browse files
authored
Support for Angular 4.0 based on tns-core-modules ~2.5 (NativeScript#711)
1 parent 7543944 commit 8c6f9bb

File tree

98 files changed

+2044
-1336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2044
-1336
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tags
99
/nativescript-angular/**/*.d.ts
1010
/nativescript-angular/**/*.js
1111

12+
!/nativescript-angular/iterable.d.ts
1213
!/nativescript-angular/global.d.ts
1314
!/nativescript-angular/postinstall.js
1415
!/nativescript-angular/hooks/**/*.js
@@ -38,3 +39,19 @@ ng-sample/app/nativescript-angular
3839
startup-test/platforms
3940
startup-test/lib
4041
startup-test/node_modules
42+
43+
# IDEs and editors
44+
/.idea
45+
.project
46+
.classpath
47+
.c9/
48+
*.launch
49+
.settings/
50+
51+
# IDE - VSCode
52+
.vscode/*
53+
!.vscode/settings.json
54+
!.vscode/tasks.json
55+
!.vscode/launch.json
56+
!.vscode/extensions.json
57+

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
<a name="1.5.0"></a>
2+
# [1.5.0](https://github.com/NativeScript/nativescript-angular/compare/v1.4.1...v1.5.0) (2017-03-22)
3+
4+
### Bug Fixes
5+
6+
* **action-bar:** Don't remove action items twice. ([677d7e0](https://github.com/NativeScript/nativescript-angular/commit/677d7e0))
7+
* **animations:** add onDestroy method to NativeScriptAnimationPlayer ([2e24010](https://github.com/NativeScript/nativescript-angular/commit/2e24010))
8+
* **dom_adapter:** add missing `contains` method signature ([bae45f6](https://github.com/NativeScript/nativescript-angular/commit/bae45f6))
9+
* **dom_adapter:** update setTitle and getGlobalEventTarget to be compliant with Angular API ([25c134d](https://github.com/NativeScript/nativescript-angular/commit/25c134d))
10+
* **gitignore:** Add editor files into gitignore ([819a960](https://github.com/NativeScript/nativescript-angular/commit/819a960))
11+
* **init:** Bootstrap Angular on page "navigatingTo" event. ([ab04aba](https://github.com/NativeScript/nativescript-angular/commit/ab04aba))
12+
* **list-view-comp:** IterableDiffer is now parameterized on \<KeyedTemplate\> ([780967d](https://github.com/NativeScript/nativescript-angular/commit/780967d))
13+
* **ns-http:** make defaultOptions of type RequestOptions ([db730e2](https://github.com/NativeScript/nativescript-angular/commit/db730e2))
14+
* **page-router-outlet:** activateWith instead of activate method ([8d832bc](https://github.com/NativeScript/nativescript-angular/commit/8d832bc))
15+
* **page-router-outlet:** manually run detect changes when navigating to new page ([07caa74](https://github.com/NativeScript/nativescript-angular/commit/07caa74))
16+
* **platform:** import InjectionToken and ViewEncapsulation instead of OpaqueToken ([c4dc8d4](https://github.com/NativeScript/nativescript-angular/commit/c4dc8d4))
17+
* **platform:** import MissingTranslationStrategy ([d2328a5](https://github.com/NativeScript/nativescript-angular/commit/d2328a5))
18+
* **renderer:** implement createComment and createText methods using Placeholders ([c0ec870](https://github.com/NativeScript/nativescript-angular/commit/c0ec870))
19+
* **renderer:** use _eachChildView for nextSibling ([150c1ce](https://github.com/NativeScript/nativescript-angular/commit/150c1ce))
20+
* **renderer:** use flags in `setStyle` and `removeStyle` instead of booleans ([a6d9247](https://github.com/NativeScript/nativescript-angular/commit/a6d9247))
21+
* **ts:** ship package with reference to iterable interface ([7edfa6b](https://github.com/NativeScript/nativescript-angular/commit/7edfa6b))
22+
23+
24+
### Code Refactoring
25+
26+
* stop exporting NativeScriptModule from platform ([#701](https://github.com/NativeScript/nativescript-angular/issues/701)) ([409e717](https://github.com/NativeScript/nativescript-angular/commit/409e717))
27+
28+
29+
### Features
30+
31+
* **animations:** introduce NativeScriptAnimationsModule ([b5874ba](https://github.com/NativeScript/nativescript-angular/commit/b5874ba))
32+
* **renderer:** implement simple nextSibling method using parent's _eachChildView ([98d9d20](https://github.com/NativeScript/nativescript-angular/commit/98d9d20))
33+
* **renderer:** upgrade to be compliant with Angular 4's Renderer2 and RendererFactory2 ([a3adcca](https://github.com/NativeScript/nativescript-angular/commit/a3adcca))
34+
* **renderer:** use EmulatedRenderer to scope component styles ([25f5111](https://github.com/NativeScript/nativescript-angular/commit/25f5111))
35+
36+
37+
### BREAKING CHANGES
38+
39+
* **NativeScriptModule:** User applications cannot import NativeScriptModule from
40+
"nativescript-angular/platform" anymore.
41+
Migration:
42+
Before:
43+
```
44+
import { NativeScriptModule } from "nativescript-angular/platform";
45+
```
46+
After
47+
```
48+
import { NativeScriptModule } from
49+
"nativescript-angular/nativescript.module";
50+
```
51+
* **animations:** To use animations, you need to import the
52+
NativeScriptAnimationsModule from "nativescript-angular/animations" in
53+
your root NgModule. Also you need a dependency to "@angular/animations".
54+
55+
* **typescript:** The required version of TypeScript is ~2.1. Support for ~2.2 requires changes in `tns-core-modules` and will be provided with NativeScript 3.0.
56+
157
# 1.1.2 (2016-10-28)
258
- Angular 2.1.2 compatibility release
359

nativescript-angular/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
*.js.map
77

8-
tsconfig.json
98
global.d.ts
9+
tsconfig.json
1010
.npmignore
1111
gulpfile.js
1212
tslint.json

nativescript-angular/animation-driver.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)