Skip to content

Commit

Permalink
fix(platform-browser-dynamic): Add @Injectable() annotation to XHRImpl.
Browse files Browse the repository at this point in the history
Otherwise Closure compiled code will complain that the class is missing the annootation.
  • Loading branch information
vikerman committed Jul 12, 2016
1 parent 2ff8332 commit 7b31178
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

import {XHR} from '@angular/compiler';
import {Injectable} from '@angular/core';

import {isPresent} from '../facade/lang';
import {PromiseCompleter, PromiseWrapper} from '../facade/promise';

@Injectable()
export class XHRImpl extends XHR {
get(url: string): Promise<string> {
var completer: PromiseCompleter<string> = PromiseWrapper.completer();
Expand Down

0 comments on commit 7b31178

Please sign in to comment.