[AngularJS] Exporting convention explicit vs implicit

2016-09-30 Thread Tom Dodson
when you import Component

import {Component} from '@angular/core'


The resolution path is...
@angular/core/index.ts -> ./src/core -> @angular/core/src/core.ts

The content of core.ts is here. 

 

-

My question is what is the convention behind exporting things explicitly

export {APP_INITIALIZER, ApplicationInitStatus} from './application_init';


vs implicitly


export * from './metadata';



tracing through trying to find where component is defined could be tricky (you 
could have to check every export * file).


Is there a reason the angular team doesn't explicitly export everything?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Communication between components in angular 1.5

2016-09-30 Thread S kumar

I am working on  components in Angular 1.5.  I have a requirement similar 
to this 
http://stackoverflow.com/questions/36033940/how-to-pass-data-between-child-components-in-angular-1-5-not-using-scope
.

In the above  plunker I have two components Header and Main. If I click on 
List button (Header) , it is showing "list" text in the Main component. My 
requirement is instead of showing  "list" text it  should call API 
(getdata()) and show records in the Main component.I am little bit confused 
*when 
/ where *to call getdata function in the Main component. Tried init() 
function but the control is not coming to Main componet after button event 
happens at Header component.

So basically wheever a list button event happens at Header component , I 
have to call API method  in Main component.How to achieve this using 
Angular 1.5 components.

Thanks in Advance

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular Universal -- Angular 2

2016-09-30 Thread James Freund
When testing robot crawlers to see what gets picked up thanks to the server 
rendering my entire application gets crawled! Which is awesome!

However, I'm noticing that it doesn't pick up that the title is getting 
changed using @angular/common and importing the Title service to use the 
setTitle function.

The setTitle function is getting called in the constructor in each of my 
components that the router paths are using. Does anyone know how I can get 
the updated page title to show up in the robot crawls on my application?

Here is a link to the running dev 
application: https://astre-quixomatic.c9users.io/

If someone needs to see source code just let me know.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: error 404 bootstrap with angular 2 final release

2016-09-30 Thread Guto Godoy
Hi Sander Elias,

I installed the bootstrap intorducing in package.json the line:

"Bootstrap": "^ 4.0.0-alpha.4"

and in index.html I inserted the line:



When running ng serves, the chrome shows the error 404 for 
bootstrap.min.css file and is not applying the style.

I'm using Anglular 2.1.0

Thanks for the feedback and help,

Guto

Em sexta-feira, 30 de setembro de 2016 00:30:17 UTC-3, Sander Elias 
escreveu:
>
> Hi Guto,
>
> Your question is unclear to me, wat is it you are doing that gives you a 
> 404?
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular1: How do I inject a div layer into an animated div layer?

2016-09-30 Thread 'Tony Starke' via AngularJS
*Hi, guys and gals. Ok, I am having trouble attempting to bind a div layer 
inside of a sliding animated menu div after a button click. Ideally, every 
button click should show a different div layer with different data after 
the animated slide. Here is the code:*




*  *


* Collapsible Menu *




























* .wrap {  position:absolute;  top:80px;  left:0px;  
width:100%;   }.menu.ng-hide-remove{animation: open 2s linear;
} @keyframes open {0% { width:20px; } 50% { width: 560px; }
} .menu {float: right;top:80px;right: 10px; 
width:560px;height:400px;background-color:white;
border-color:#0AA7E5;border-style: solid;border-width: 3px;
border-left-width: 20px;*


















*border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;overflow: none;}.shut {float: 
right;top:80px;right: 10px; width:20px;height:400px;
background-color:white;border-color:#0AA7E5;border-style: solid;
border-width: 3px;border-left-width: 20px;*




*border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;overflow: none;}*












*.button { width:260px;height:30px;
background-color:white;border-color:#0AA7E5;border-style: solid;
border-width: 3px;border-left-width: 10px;border-right-width: 
10px;border-radius: 6px 6px;font: bold 12px Verdana; color: 
red;   } *

**



**





















































*Get 
Menu 1Get Menu 2Get Menu 3Get Menu 4Get Menu 5Get Menu 6Get Menu 
7  This is menu 1.  This is menu 
2.  This is menu 3.  This is menu 4.  This is menu 
5.  This is menu 6.  This is menu 7.   var 
app = angular.module('myApp', ['ngAnimate']);  
app.controller('divController', function($scope){$scope.view = 1;
$scope.view = getDiv function(){If ($scope.view = 1) {  $scope.view 
= $scope.div1;  }   If ($scope.view = 2) {  $scope.view = 
$scope.div2;  }If ($scope.view = 3) {  $scope.view = 
$scope.div3;  }   If ($scope.view = 4) {  $scope.view = 
$scope.div4;  }   If ($scope.view = 5) {  $scope.view = 
$scope.div5;  }   If ($scope.view = 6) {  $scope.view = 
$scope.div6;  }   If ($scope.view = 7) {  $scope.view = 
$scope.div7;  }else {  $scope.view = false;   
}}   }); *


**
*Perhaps an ng switch directive or ng hide for each button. Please 
enlighten me as to the proper syntax to achieve this. *

*Thanks in advance, Batoe.* 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Creating a generic data service in Angular 2

2016-09-30 Thread Stephen Rios
That's exactly what I was thinking would work best for REST-heavy SPAs. 
 Good to know I was on the right track.  Thanks Sander.

On Thursday, September 29, 2016 at 12:59:06 PM UTC-5, Sander Elias wrote:
>
> Hi Stephen,
>
> What I did was create a rest service, that I can provide to components. 
> (instead of putting it in ngModule)
> Then in my component, I provide the endpoint URL. After that, I can just 
> use the get/put/etc services from the service. The upside of this approach 
> is that inside all lower level components I can just use the service, and 
> it would be the same instance with the same setting, and I don't need to 
> provide the URL anymore.
>
> Hope this helps you a bit,
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: naming conventions

2016-09-30 Thread 'Jörg Hohwiller' via AngularJS
Already Angular Coders themselves do it as suggested and do not follow own 
angular conventions. See e.g.:
https://github.com/angular-ui/ui-router/tree/master/src/url

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Urgent Position::Sr. Java Developer::Ann Arbor, MI || Need GC and US Citizen Only

2016-09-30 Thread rahul goswami
Hi

Need GC and US Citizen Only

Need Local Candidate

Please share profile at rahulg...@onsinteractive.com

*Job Title: Sr. Java Developer*

*Location: Ann Arbor, MI*

*Job Type: Contract job*

*Job ID:* *16-01741*





*Primary Initiative:*
The Senior Software Engineer will perform complex software design tasks and
will provide thought leadership on the design, development, build, deploy
and maintenance of complex systems/products/projects.

*Secondary Initiative:*
This role will serve as an SME on a particular system or product or
application and will be required to gain complete understanding of business
requirements and communicate them to development teams. This role will
mentor and lead junior software engineers/developers while ensuring
development practices are in line with company best practices and policies

*Job Duties & Responsibilities:*
This role will be part of the team responsible for the re-architecture,
design, development and launch of the next generation code base aligned to
the future state platform architecture.

*Responsibilities:*
Performs product design & troubleshooting exercises of extremely high
complexity which require extensive research and analysis.
Leads system design and specification development, program logic and
flow-charting, testing, debugging, and documentation. Will be responsible
for making complex design choices to be used by the development teams.
Leads moderate to highly complex programming tasks, providing review of
various development tasks and documentation. Provides analysis of problems
and recommends solutions.
A key contributor in client/technology interactions in the development of
technology solutions
Will interface with Enterprise Architecture & Infrastructure teams on
strategic designs and initiatives.
Leads the troubleshooting of complex problems in development and production
environments, ensuring timely resolution of issues.
Mentors more junior engineers/developers, serves as an SME on their system
of expertise and directs the work and assigns development tasks of junior
engineers/developers.

*Required Skills:*
4+ Years of Java, J2EE and web/internet based programming experience (both
client and server side)
4+ Experience with OOA/OOD, distributed systems/software, real time
processing, relational database systems, messaging systems • Deep
understanding of data structures, algorithms and design patterns (GoF)
Experience with agile, test-driven development
Experience with application development frameworks like Spring, Hibernate,
JSF, Struts or similar frameworks
Experience with Unix/Linux, Windows
Experience with build tools like Ant, Maven or Gradle
Demonstrated experience working with core business logic within applications
Experience in developing APIs and Frameworks
Excellent written and verbal communication skills
Bachelor's degree in Computer Science or equivalent discipline

*Additional Skills:*
Experience with UI architecture and framework
Experience with build systems like Hudson, Jenkins, Bamboo or TeamCity
Experience with SOA and Web Services

*# of Years Required:*
4+ Years of Core Java, Core Java, Core Java and web/internet based
4+ programming experience (both client and server side)

*Required Education:*
Bachelor's degree in Computer Science


*Best Regards,*








*Rahul GoswamySr. Technical RecruiterOns Interactive solutionsAccelerating
Customer Growth…Global Locations: US-Canada-IndiaUS T: 201-383-2812F:
203-779-1102Email: rahulg...@onsinteractive.com
*

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Urgent Position:: Android Developer::Ann Arbor, MI ||| Need GC and US Citizen Only

2016-09-30 Thread rahul goswami
Hi

*Need GC and US Citizen Only*

Please share profile at rahulg...@onsinteractive.com

*Position title: Android Developer*

*Location Ann Arbor, MI*

*Job type: Contract *

*Job ID: 16-01737*



*Description:*
Take on this challenging position, and thrive at the forefront of cutting
–edge trading applications as you design, develop and provide thought
leadership on the thinkorswim development team. Continuously move forward
in your career, as an essential member of this team in an Agile
environment. Stay up-to-date with the latest technology by participating in
research and analysis. Interface with Enterprise Architecture &
Infrastructure teams on strategic designs and initiatives. Act as a key
contributor in client/technology interactions in the development of
technology solutions. Mentor and direct developers, serve as an SME on
their system of expertise and assign development tasks of junior
engineers/developers.

*Responsibilities:*
Performs product design and troubleshooting exercises of extremely high
complexity which require extensive research and analysis ?
Leads system design and specification development, program logic and
flow-charting, testing, debugging, and documentation. Will be responsible
for making complex design choices to be used by the development teams ?
Leads moderate to highly complex programming tasks, providing review of
various development tasks and documentation. Provides analysis of problems
and recommends solutions?
Is a key contributor in client/technology interactions in the development
of technology solutions. Will interface with Enterprise Architecture &
Infrastructure teams on strategic designs and initiatives?
Leads the troubleshooting of complex problems in both development and
production environments, ensuring timely resolution of issues?• Responsible
for the development and documentation of best practices for his/her area of
expertise

*Requirements*
Qualified candidates will have at least 4+ Years of Android development
experience.
Two plus years of Java experience; server side.?
Four plus years’ experience with OOA/OOD, distributed systems/software,
real time processing, relational database systems, messaging systems.
Deep understanding of data structures, algorithms and design patterns; GoF.
Experience with agile, test-driven development.
Experience with build, deploy and test automation tools like Ant, Maven,
Hudson, Jenkins, Cruise Control, Junit, Test NJ, Selenium or similar tools.
Demonstrated experience working with core business logic within
applications.
Experience in developing APIs and Frameworks.
Bachelor's degree in Computer Science or equivalent disciplines
Military education or experience may be considered in lieu of civilian
requirements listed


*Best Regards,*








*Rahul GoswamySr. Technical RecruiterOns Interactive solutionsAccelerating
Customer Growth…Global Locations: US-Canada-IndiaUS T: 201-383-2812F:
203-779-1102Email: rahulg...@onsinteractive.com
*

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Bootstrap doesn't working with angular2 components

2016-09-30 Thread Navaneetha Krishnan S


CSS/Bootstrap doesn't work when it is rendered in a angular2 component.

If I try to render the html contents in Index.html file (with proper 
references for CSS,JS) the application/functionality works fine. 

But when the same html contents along with CSS classes is rendered in the 
angular2 component, it doesnt work.


Based on the searches on internet I have done all these changes but nothing 
makes it working. I have added encapsulation: ViewEncapsulation.None for 
that component, still the css doesnt work along with angular2.

also the order of JS file references are in the following order

 https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js";>
http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js";>


I have replicated the issue and checked into Github url 



can somebody help me with this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
I added the following console messages

 getHeroes(): Promise {
  return this.http.get(this.heroesUrl)
   .toPromise()
   .then(response => {  console.log("service response text " + 
response.statusText);
  console.log("service response data " + 
response.json().data);
  console.log("service response status " + response.status);
  response.json().data as Hero[];}
   .catch(this.handleError);
 }

and the output was 
service response text OK
service response dataundefined
service response status 200
returned heroes is undefined

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] naming conventions

2016-09-30 Thread 'Jörg Hohwiller' via AngularJS
Hi there,
I just want to question your suggested naming conventions:
https://angular.io/docs/ts/latest/guide/style-guide.html#!#02-02
https://angular.io/docs/ts/latest/tutorial/toh-pt3.html#!#naming-conventions

IMHO you should follow the TypeScript conventions from Microsoft - the 
makers of TypeScript:
https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines

This means a class FooRestService should be located in FooRestService.ts or 
fooRestService.ts instead of foo-rest.service.ts.
This is how TypeScript is used, how Java is used, how C# is used, how most 
of all other languages that have classes in files are used.

IMHO this even makes it easier to find things as if I am looking for the 
Class FooRestService I do not have to do dash-case with magic dot 
transformations in my mind.

Further TypeScript conventions explicitly states that interfaces should not 
use artifical prefixes (I) [or suffixes (IF)]. This is a style that has 
already been discouraged in Java and C# ~10 years ago.

I do not want to blame anyone and I do not want to force anyone to 
re-factor or change anything.
However, I just want to make a clear suggestion - whatever you will do with 
it...

Best regards
  Jörg

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
Hi Sander,

I do not think it is a CORS issue because I did have CORS errors in the 
browser debugger console. These stopped when I added a grails plugin for 
the data server.

Because of the log messages from Tomcat, I do think that is doing its job 
so the problem is somewhere inside the angular call and handling the return 
data. Of course having said that, it could well be that the structure of 
the JSON data returned by the server is the wrong structure for Angular.

If I was to reset the angular app to use in memory web api, is there a way 
of showing the JSON that is returned so that I could compare it with the 
data that curl receives from the server?

Interestingly, if I use MS Edge browser, then the get call in the angular 
code is not reaching tomcat. If I use Firefox it is reaching tomcat.
Using F12 debug console, I get
 Exception: Uncaught (in promise): TypeError: heroes is 
undefined

So though data is returned from server it is not being handled by the 
promise callback. I think.

Regards,
John


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Slow rendering of an *ngFor list view

2016-09-30 Thread Birowsky
Whoever helps us out with this, gets paid: 
https://www.codementor.io/dashboard#/active-requests/9638767805


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
Just to add, how can the URL be null when the there is a record in the 
tomcat log showing a 200 response to a request?


>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Directive delegated function in directive controller doesn't pass parameters?

2016-09-30 Thread mightyplow
Thank you very much!

Am Donnerstag, 18. Oktober 2012 06:33:36 UTC+2 schrieb Jay B:
>
> After some searching, I found the fix to pass parameters to a delegated 
> function in a directive. I don't believe this is clearly explained / 
> documented, so hopefully this will help someone out.
>
> See this jsfiddle: http://jsfiddle.net/QM69A/9/ (note the information in 
> the console log).
>
> The problem was that I had to include a parameter name in the directive 
> tag (b-var="testFunc(*aParamName*)") and then call the delegate with an 
> object map containing key/value pairs of parameter names to data mappings 
> in the directive controller ($scope.bVar({aParamName: "a value"})).
>
> Here is the blog that helped me along the way 
> http://onehungrymind.com/angularjs-sticky-notes-pt-2-isolated-scope/ and 
> its associated jsfiddle: http://jsfiddle.net/simpulton/VJ94U/ .
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Slow rendering of an *ngFor list view

2016-09-30 Thread Birowsky
The detailed discussion is in 
StackOverflow: http://stackoverflow.com/q/39778634/592641

But here's the jist of it:

I'm rendering out a list view of quite complex component using *ngFor. 

Instead of what i expected to be out-of-the-dom html construction and 
single push to render it into the dom, there is a separate appendChild call 
for what seems to be every little binding in the iterated component. 

The result is almost 2 seconds locked ui on desktop, and almost 4 seconds 
locked ui on mobile device.

I really hope i'm doing something wrong.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp

>
> Hi Sander,
>
I do not think it is a CORS issue because I did have CORS errors in the 
browser debugger console. These stopped when I added a grails plugin for 
the data server.
Because of the log messages from Tomcat, I do think that is doing its job 
so the problem is somewhere inside the angular call and handling the return 
data. Of course having said that, it could well be that the structure of 
the JSON data returned by the server is the wrong structure for Angular.
If I was to reset the angular app to use in memory web api, is there a way 
of showing the JSON that is returned so that I could compare it with the 
data that curl receives from the server?
Using Edge browser, this is the debug info (I have removed repeated info

SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the 
operation due to error 2efd.

An error occurred Response with status: 0  for URL: null
main.bundle.js (22561,9)
   "An error occurred"
   {
  [functions]: ,
  __proto__: { },
  _body: { },
  headers: { },
  ok: false,
  status: 0,
  statusText: "",
  type: 3,
  url: null
   }

EXCEPTION: Uncaught (in promise): Response with status: 0  for URL: null

ORIGINAL STACKTRACE:
main.bundle.js (41416,13)
Error: Uncaught (in promise): Response with status: 0  for URL: null
   at resolvePromise (http://localhost:4200/main.bundle.js:72994:25)
   at resolvePromise (http://localhost:4200/main.bundle.js:72979:17)
   at Anonymous function (http://localhost:4200/main.bundle.js:73027:17)
   at ZoneDelegate.prototype.invokeTask 
(http://localhost:4200/main.bundle.js:72799:17)
   at onInvokeTask (http://localhost:4200/main.bundle.js:59333:21)
   at ZoneDelegate.prototype.invokeTask 
(http://localhost:4200/main.bundle.js:72799:17)
   at Zone.prototype.runTask (http://localhost:4200/main.bundle.js:72701:21)
   at drainMicroTaskQueue (http://localhost:4200/main.bundle.js:72933:25)
   at invoke (http://localhost:4200/main.bundle.js:72873:25)
main.bundle.js (41417,13)
Unhandled Promise rejection: Response with status: 0  for URL: null ; Zone: 
angular ; Task: Promise.then ; Value: Response with status: 0  for URL: 
null undefined


Error: Uncaught (in promise): Response with status: 0  for URL: null

Is there anything here which is helpful?

John


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] .success of $http get -Angular js Equivalent in Angular 2

2016-09-30 Thread Santhosh Kumar S
Hi,

 My requirement is to get the data from a webapi and do some calculations, 
i am  unable to catch exactly when  my function returns the the data from 
webapi. In angular 1  I used to write code  in .success block which fires 
when the data is returned from webapi, now  in angular 2  I am unable find 
the substitute for  .success, can any one guide me here.

Thanks

Santhosh

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Reading a .txt file from Angular 2 Typescript

2016-09-30 Thread Santhosh Kumar S
HI Sander,

Thanks That really worked  and my requirement changed from .txt to .json,


Regards
Santhosh 

On Thursday, September 29, 2016 at 11:30:23 PM UTC+5:30, Sander Elias wrote:
>
> Hi Santhosh,
>
> Yes, put the text file on your server, and use the http to fetch the file,
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] In angular2, are there any methods just like $compile() ?

2016-09-30 Thread yisense101
In angular2, are there any methods just like $compile() ?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.