[AngularJS] Can I use angular2 with cdn and no transpile in pure js?

2016-09-29 Thread Thaina Yu
I want to develop angular2 just as angularjs and write all code directly in one file with pure html/js and script from cdn Is it possible in angular2 ? I wish there could be some tutorial and angular2 on google hosted library -- You received this message because you are subscribed to the Googl

[AngularJS] How to play music in angular.js

2016-09-29 Thread oiyio
Hello, i want to develop a web page related to playing,pausing music. I am trying to find a basic code which plays an audio file. I find an example from github and download it. But i couldn't run it. Here is what i found : https://danielstern.github.io/ngAudio/#/ How to run it? Do you have any

[AngularJS] Re: Why Angularjs called framework and instead of JavaScript library?

2016-09-29 Thread Thaina Yu
Well, I'm game programmer and there is long debate about difference between engine(library) and framework There is a short answer that "With engine, you call function. But with framework, function call you" It may not so obvious but framework, unlike engine, mostly told you that you have some

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

2016-09-29 Thread Sander Elias
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+uns

[AngularJS] Re: Need to display data groupwise using ng-repeat (group on two columns)

2016-09-29 Thread Sander Elias
Hi Vikas, The best way is to preprocess the array in your controller. Assuming your array has the right sort order you can use a simple reducer. I'll type you up an example in here, you might need to fiddle a bit around to make it work for real: $scope.result = $scope.items.reduce(function(res

[AngularJS] Re: Compiling in ECMASCRIPT 5 (ES5) throws error

2016-09-29 Thread Sander Elias
Hi Sumit, Well, to get started, the easiest way is to install the angular-cli, and let that scaffold a new project for you. It takes care of everything build/compile related. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To uns

[AngularJS] Re: Compiling in ECMASCRIPT 5 (ES5) throws error

2016-09-29 Thread Sumit Rohatgi
On Thursday, September 29, 2016 at 3:45:00 PM UTC-7, Sumit Rohatgi wrote: > > How do i pull pollyfills > > I have already run below command*npm install angular2 s

[AngularJS] Re: Compiling in ECMASCRIPT 5 (ES5) throws error

2016-09-29 Thread Sumit Rohatgi
How do i pull pollyfills I have already run below command*npm install angular2 systemjs es6-promise es6-shim rxjs* On Thursday, September 29, 2016 at 11:15:53 AM UTC-7, Sander Elias wrote: > > Hi Summit, > > It looks like you forgot to pull in the polyfills. (coreJS) > > Regards > Sander >

[AngularJS] Re: JavaScript Tutorial - Tour of Heroes

2016-09-29 Thread Stan Cyaa
Even 5 months late, I decided to post in this thread, because when it comes to ES5 there are only scattered bits and pieces here and there, but nothing as a whole project. Plus it was one of the first places I landed, when initially started searching for resources. Here's a working ES5 repo c

[AngularJS] CSS bootstrap doesn't work when it is rendered as part of angular2 components

2016-09-29 Thread Navaneetha Krishnan S
I have taken some free downloadable template which is built in bootstrap, CSS and Jquery. If I try to render the html contents in the index.html file (with proper references for CSS,JS) the application/functionality works fine The functionality i am referring here is expand/collapse feature o

[AngularJS] Re: Angular 2 (Final): resetConfig to add routes to lazy loaded routes

2016-09-29 Thread Andrea Bertoldo
Ok thanks! In the meantime I noticed that if I use a component to wrap the named router outlets it won't work, the router outlet must belong to the details component (see the plunkr). So I think I'll have to dynamically create the detail component's template as well as resetting the router conf

[AngularJS] Re: ErrorResponse.status == -1

2016-09-29 Thread Sander Elias
Probably CORS, but your are providing not enough information to give a final answer to your issue! 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

[AngularJS] Re: Unable to validate requiredLength in Angular 2

2016-09-29 Thread Sander Elias
Hi Dawg, You need the elvis operator . The difference with NG1 is that in NG2 it is not allowed to have non existing properties in your template. Regards Sander -- You received this message because yo

[AngularJS] Re: Angular 2 (Final): resetConfig to add routes to lazy loaded routes

2016-09-29 Thread Sander Elias
Hi Andrea, As I have been out to Angularconnect I did miss your response, this is one that will take me a bit more time, so I'm going to look at it when I'm back home. If you don't hear back from my by next Monday, shoot me a message. Otherwise, I might forget. This week has been a rollercoaste

[AngularJS] Re: Compiling in ECMASCRIPT 5 (ES5) throws error

2016-09-29 Thread Sander Elias
Hi Summit, It looks like you forgot to pull in the polyfills. (coreJS) 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...@googlegr

[AngularJS] Compiling in ECMASCRIPT 5 (ES5) throws error

2016-09-29 Thread Sumit Rohatgi
when targeting -es5; How to get rid of Angular2 errors on Cannot find map, Promise ... if I target es6 the errors will go away, but I must target es5 to support old browsers. I am using visual studio 2015 { "compilerOptions": { "noImplicitAny": false, "noEmitOnError": true, "removeCommen

[AngularJS] Re: how to embed external url in angularjs without frame

2016-09-29 Thread Sander Elias
Hi Thirumalesh, I have no idea what it is you are after. I think you want to check out ngInclude . When that's not the case, please clarify your question a bit more. Regards Sander -- You received this message because you are subscribed to

[AngularJS] Re: angular filter group by

2016-09-29 Thread Sander Elias
Hi Yash, Yes, there is. If you build a working plunk illustrating your issue, I will help you along. 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

[AngularJS] Re: parsing data

2016-09-29 Thread Sander Elias
Hi Sabs, Is there a question in there? I suspect so, and I think the answer is something like, Use a service, you inject in both of your controllers. But I'm not too sure about that. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group

[AngularJS] Re: Managing Sites in AngularJS / NodeJS

2016-09-29 Thread Sander Elias
Hi Adrien, Are you asking about Angular version 1 SEO? There are solutions for that, but those are highly dependent on your app. have you tried googling for angular SEO? it will provide a wide range of solutions. None being a real ideal solution. So it's up to you, and what's needed for your a

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

2016-09-29 Thread Sander Elias
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+uns

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

2016-09-29 Thread Sander Elias
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 le

[AngularJS] Re: ng2: "XHR finished loading: " tons of .js files upon page load?

2016-09-29 Thread Sander Elias
Hi Vern, For the version you are using this is indeed normal. To speed the page up you need to do some bundling of the files. You have to do this in the systemJS config file. Disabling the developer mode would, in fact, repress the warnings, but it won't make a difference in loading times. Act

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

2016-09-29 Thread Sander Elias
Hi John, Did you inspect the network request in the developers debugging console? What is the result you get in there? It might be a cors issue, that get's lost in the toPromise handling. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS"

[AngularJS] Re: Subscripe multiple cals

2016-09-29 Thread Sander Elias
Hi, Gheorghe You have this: this.subscription = this.footerService.submit$.subscribe(value => value === true ? this.onSubmit() : null); this.subscription = this.footerService.sendMail$.subscribe(value => value === true ? this.popup.open() : null); and this: ngOnDestroy() {

[AngularJS] Instructional Designer/Systems Analysis Consultant in EDEN PRAIRIE, MN || GC and US Citizen Only

2016-09-29 Thread rahul goswami
Hi Need GC and US Citizen Only Please share profile at vart...@onsinteractive.com *Job Title: Instructional Designer/IT - Systems Analysis Consultant - Senior* *Location: EDEN PRAIRIE, MN* *Job Type: 4+ months Contract to Hire * *Client: UNITED HEALTH GROUP (UHG) * *Instructional

[AngularJS] Highlighting tabs/pills

2016-09-29 Thread Joe Tseng
Newbie here... I made a tabbed interface (using pills in the top nav menu) and I want to have the tab stay highlighted once it's been clicked. However, right now this only happens if the user clicks it twice. My current code is as follows: Repos Auto Tags

[AngularJS] How to dynamically create/destroy modal based on div clicked (Angular2)

2016-09-29 Thread Alex Chandler
I would like to create an application which allows you to click on any item generated and bring up a larger version. Once loaded, if you click away from the larger version onto any other part of the page it should close. *Currently;* If a modal is loaded and you click off it onto another thu

[AngularJS] Subscripe multiple cals

2016-09-29 Thread Gheorghe Florea
I can't understand why my function cal is multiplying every time i came on this page. my code: ``` import { Component, EventEmitter, Input, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { FooterService

[AngularJS] before selecting an item from datalist it moves to another page

2016-09-29 Thread ashish pujari
http://stackoverflow.com/questions/39766909/before-selecting-a-item-from-datalist-its-move-to-another-page/39767278?noredirect=1#comment66831524_39767278 -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiv

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

2016-09-29 Thread norricorp
Hi, Using the Heroes tutorial on the Angular 2 website. I have set up the heroService to use a rest service from tomcat. Using curl produces the correct result C:\Temp\curl>curl http://centos7-ansible:8080/heroes/heroes [{"id":1,"name":"Mr. Nice"},{"id":2,"name":"Narco"},{"id":3,"name":"Bomba

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

2016-09-29 Thread Santhosh Kumar S
Hi Is it possible to read data in a .txt file from angular 2, i just give file in the application and the data has to be read from that file, please guide me here. Thanks Santhosh -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsu

[AngularJS] Need to display data groupwise using ng-repeat (group on two columns)

2016-09-29 Thread Vikas Parab
Hi, Database provide following JSON string. $scope.items = [ {"Name":"Michael","Region":"Canada","Subject":"Chemistry","Action":"Email"}, {"Name":"Michael","Region":"Canada","Subject":"Biology","Action":"Call"}, {"Name":"Kristen","Region":"USA","Subject":"Chemistry","Action":"Skype"}, {"Name":"Kr