Sanders,
How do we receive data in our directives without using $scope?
Regards,
Tahir
On Wednesday, September 9, 2015 at 9:46:13 AM UTC+3, Sander Elias wrote:
>
> Hi Sumant,
>
> I strongly agree with Stewart. There is still a lot that needs to be done
> before NG2 reaches BETA. Experience tell
Hi Sander,
I found a patched new router that enabled $scope injection in the
controllers. Many thanks for detailed explanation and suggestions.
Regards,
Tahir
On Wednesday, September 9, 2015 at 9:33:47 AM UTC+3, Sander Elias wrote:
>
> Hi Tahir,
>
> Well, you should start of with filing an issu
yes, that's all working ok.
Problem is 3rd party directives that expect data on $scope. e.g., I am
using angular-grid and it's complaining that it can't find gridOptions as
it uses $scope.eval() to get the data. I was able to hack it by using
$scope.$watch but I can't do it for every 3rd party
I am using angular 1.4 with new component router. The component controller
code adds properties using
this.name = 'some name'.
but if I need to pass data from component to a directive, I still have to
use $scope. Is there a workaround to using a single approach (either $scope
or this reference)
Hi Eric,
Many thanks. This worked and I was able to use http to consume a rest
service.
On Tuesday, August 25, 2015 at 8:15:01 PM UTC+3, Eric Martinez wrote:
>
> Hey Tahir,
>
> I've been playing with that project and I found a workaround.
>
> First of all, the error you see is not a blocking o
Hi,
I checked-out ng2-play.ts
from https://github.com/pkozlowski-opensource/ng2-play.ts
once I got hello world working, I want to use http service to connect to a
rest service. I am not able to import http from http/http after many tries.
since ng2-play project uses gulpfile and it has a typings
Eric,
good suggestion.
I've started a new thread under "Importing http in an Angular2 + TypeScript
project"
On Tuesday, August 25, 2015 at 5:56:20 PM UTC+3, Eric Martinez wrote:
>
> Tahir,
>
> I don't think you should modify that file, I mean, it has nothing to do
> with the typings and it is u
Eric,
I did that and to resolve this import, I added the following typing
reference in gulpfile.js.
"node_modules/angular2/bundles/typings/angular2/http.d.ts"
but still TypeScript compiler is giving errors like "can't find name
EventEmitter".
Regards,
On Monday, August 24, 2015 at 7:57:46 PM
tried but no luck. tsc compiler error "error TS2305: Module
'"angular2/angular2"' has no exported member 'httpInjectables'.".
I am now using npm to get angularjs but perhaps its a moving target.
On Sunday, August 23, 2015 at 6:58:41 PM UTC+3, Pete Moss wrote:
>
> The way I injected the Http serv
Hi,
I too, can't find how to inject Http (or $http?) service. Some examples
mentioned adding an import of "angular2/di.d.ts" but I could not find it
with "tsd" or in definitely-typed repo.
Please help.
Thanks.
On Thursday, July 30, 2015 at 12:21:48 AM UTC+3, Pete Moss wrote:
>
> I am using Ang
10 matches
Mail list logo