Skip to content

Commit d9911a3

Browse files
committed
Release 0.7.0
1 parent 3de011a commit d9911a3

File tree

5 files changed

+25
-38
lines changed

5 files changed

+25
-38
lines changed

.versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ [email protected]
1212
1313
1414
15-
local-test:urigo:[email protected]-beta.3
15+
local-test:urigo:[email protected]
1616
1717
1818
@@ -25,4 +25,4 @@ [email protected]
2525
2626
2727
28-
urigo:[email protected]-beta.3
28+

README.md

+20-33
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
======================================================
33
> The power of Meteor and the simplicity and eco-system of AngularJS
44
5-
# New v0.6 - the biggest changes so far!
6-
7-
We just released angular-meteor version 0.6.0 with a lot of exciting new features, including new API's for collections, templates and routing. It does have some breaking changes too. You can read more on the details in the [release notes](https://github.com/Urigo/angular-meteor/releases/tag/0.6.0)
8-
9-
Update to the new version by running:
10-
11-
```bash
12-
$ meteor update
13-
```
14-
155
## Please support our ng-conf 2015 talk proposal by commenting on it [here](https://github.com/ng-conf/submissions-2015/pull/172)
166

177
## Quick start
@@ -30,10 +20,7 @@ We would love contributions in:
3020

3121
1. Code
3222
2. [Tutorial](http://angularjs.meteor.com/tutorial) - our goal with the tutorial is to add as many common tasks as possible. If you want to create and add your own chapter we would be happy to help you writing and adding it.
33-
3. [External issues](https://github.com/Urigo/angular-meteor/issues/109) - help us push external issues that affect our community.
34-
4. [Roadmap](https://trello.com/b/Wj9U0ulk/angular-meteor) - you can add a card about want you want to see in the library or in the tutorial.
35-
36-
We are also considering money compensation for contributors, more as a tribute then a profit for now.
23+
3. [Roadmap](https://trello.com/b/Wj9U0ulk/angular-meteor) - you can add a card about want you want to see in the library or in the tutorial.
3724

3825
## Contributor Developer Setup
3926

@@ -88,9 +75,9 @@ You don't need to bootstrap the application manually, simply specifying the `ng-
8875

8976
From angular-meteor version 0.6 you can use Angular's default template delimiters and there is no need to change them.
9077

91-
However, you need to write your Angular template markup in `.tpl` files, since Meteor won't look at those files as Spacebars templates. Tying HTML and `.tpl` files together isn't very difficult, we can simply use Angular's `ng-include`.
78+
However, you need to write your Angular template markup in `.ng.html` files, since Meteor won't look at those files as Spacebars templates. Tying HTML and `.ng.html` files together isn't very difficult, we can simply use Angular's `ng-include`.
9279

93-
Please note that the names of the templates to Angular will be their URL as Meteor sees it when minifying the .tpl files. **Hence every template URL is relative to the root of the Meteor project, and contains no leading forward slash.** This is important to note when working with `ng-include` to include templates.
80+
Please note that the names of the templates to Angular will be their URL as Meteor sees it when minifying the .ng.html files. **Hence every template URL is relative to the root of the Meteor project, and contains no leading forward slash.** This is important to note when working with `ng-include` to include templates.
9481

9582
`client/index.html`:
9683

@@ -101,13 +88,13 @@ Please note that the names of the templates to Angular will be their URL as Mete
10188

10289
<body>
10390
<div ng-app="myModule">
104-
<ng-include src="'client/views/user.tpl'"></ng-include>
105-
<ng-include src="'client/views/settings.tpl'"></ng-include>
91+
<ng-include src="'client/views/user.ng.html'"></ng-include>
92+
<ng-include src="'client/views/settings.ng.html'"></ng-include>
10693
</div>
10794
</body>
10895
```
10996

110-
`client/views/user.tpl`:
97+
`client/views/user.ng.html`:
11198

11299
```html
113100
<div>
@@ -122,23 +109,23 @@ Please note that the names of the templates to Angular will be their URL as Mete
122109

123110
### Using Meteor Collections
124111

125-
angular-meteor provides 3-way data binding (view-client-server) by tying a Meteor collection to an Angular model. The API to accomplish this is [$meteorCollection](http://angularjs.meteor.com/api/meteorCollection).
112+
angular-meteor provides 3-way data binding (view-client-server) by tying a Meteor collection to an Angular model. The API to accomplish this is [$meteor.collection](http://angularjs.meteor.com/api/meteorCollection).
126113

127114
```js
128-
$scope.todos = $meteorCollection(Todos);
115+
$scope.todos = $meteor.collection(Todos);
129116
```
130117

131118
[More in step 3 of the tutorial](http://angularjs.meteor.com/tutorial/step_03)
132119

133120
### Subscribe
134121

135-
[$meteorSubscribe.subscribe](http://angularjs.meteor.com/api/subscribe) is a wrapper for `Meteor.subscribe` that returns a promise.
122+
[$meteor.subscribe](http://angularjs.meteor.com/api/subscribe) is a wrapper for `Meteor.subscribe` that returns a promise.
136123

137124
Here's an example of how to tie a Meteor collection to a clean Angular model in the form of an array:
138125

139126
```js
140-
$meteorSubscribe.subscribe('Todos').then(function () {
141-
$scope.todos = $meteorCollection(Todos);
127+
$meteor.subscribe('Todos').then(function () {
128+
$scope.todos = $meteor.collection(Todos);
142129
});
143130
```
144131

@@ -147,10 +134,10 @@ $meteorSubscribe.subscribe('Todos').then(function () {
147134
When adding controllers and the likes, remember to use [Dependency Injection](http://docs.angularjs.org/guide/di). This is common Angular practice and helps you avoid problems when minifying and obfuscating code.
148135

149136
```js
150-
app.controller('TodoCtrl', ['$scope', '$meteorCollection',
151-
function($scope, $meteorCollection) {
137+
app.controller('TodoCtrl', ['$scope', '$meteor',
138+
function($scope, $meteor) {
152139

153-
$scope.todos = $meteorCollection(Todos);
140+
$scope.todos = $meteor.collection(Todos);
154141

155142
$scope.addTodo = function() {
156143
$scope.todos.push({text:$scope.todoText, done:false});
@@ -166,7 +153,7 @@ function($scope, $meteorCollection) {
166153

167154
### Routing
168155

169-
You no longer need to use the special [urigo:angular-ui-router](https://github.com/Urigo/meteor-angular-ui-router) package. Instead, you can include [angular-ui-router](https://github.com/angular-ui/ui-router) either with Bower by using [mquandalle:bower](https://atmospherejs.com/mquandalle/bower) or manually by downloading it and injecting it with dependency injection like you would with any other Angular module.
156+
Use to official AngularUI ui-router Meteor package - [angularui:angular-ui-router](https://atmospherejs.com/angularui/angular-ui-router)
170157

171158
More on how to actually use angular-ui-router in [step 5 of the tutorial](http://angularjs.meteor.com/tutorial/step_05)
172159

@@ -184,7 +171,7 @@ You can include Meteor's native templates with the [meteor-include](http://angul
184171

185172
#### Caveat regarding &lt;meteor-include&gt;
186173

187-
The 0.6 release relies more heavily on Angular's default templating system and it is now usually recommended that you use `ng-include` over `meteor-include`. This is because you can't use Angular's template delimiters directly within Meteor templates and you would still need to use an `ng-include` directive to include any Angular template markup in your Meteor templates.
174+
Since 0.6 release, angular-meteor relies more heavily on Angular's default templating system and it is now usually recommended that you use `ng-include` over `meteor-include`. This is because you can't use Angular's template delimiters directly within Meteor templates and you would still need to use an `ng-include` directive to include any Angular template markup in your Meteor templates.
188175

189176
Although it is possible to combine the two systems for including templates, using one of them to the furthest extent possible helps us avoid the recipe for headaches that is unnecessarily deep template hierarchies.
190177

@@ -201,20 +188,20 @@ $rootScope.loggingIn; // true if a Meteor login method is currently in progress
201188

202189
### Meteor methods with promises
203190

204-
[$meteorMethods](http://angularjs.meteor.com/api/methods) calls a Meteor method and returns a promise.
191+
[$meteor.call](http://angularjs.meteor.com/api/methods) calls a Meteor method and returns a promise.
205192

206193
```js
207-
$meteorMethods.call('addUser', username).then(function (data) {
194+
$meteor.call('addUser', username).then(function (data) {
208195
console.log('User added', data);
209196
});
210197
```
211198

212199
### Bind Meteor session
213200

214-
[$meteorSession](http://angularjs.meteor.com/api/session) binds a scope variable to a Meteor Session variable.
201+
[$meteor.session](http://angularjs.meteor.com/api/session) binds a scope variable to a Meteor Session variable.
215202

216203
```js
217-
$meteorSession('counter').bind($scope, 'counter');
204+
$meteor.session('counter').bind($scope, 'counter');
218205
```
219206

220207
### Additional packages

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-meteor",
33
"main": "angular-meteor.js",
4-
"version": "0.6.8",
4+
"version": "0.7.0",
55
"homepage": "https://github.com/Urigo/angular-meteor",
66
"authors": [
77
"Uri Goldshtein <[email protected]>"

package.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: "urigo:angular",
33
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
4-
version: "0.7.0-beta.3",
4+
version: "0.7.0",
55
git: "https://github.com/Urigo/angular-meteor.git"
66
});
77

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-meteor",
3-
"version": "0.7.0-beta.2",
3+
"version": "0.7.0",
44
"description": "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
55
"main": "package.js",
66
"directories": {

0 commit comments

Comments
 (0)