Re: [AngularJS] Re: Validates dynamic form inputs

2014-04-13 Thread Pawel Kozlowski
Hi! Check http://stackoverflow.com/a/12044600/1418796 Cheers, Pawel On Sun, Apr 13, 2014 at 8:02 PM, César Barone wrote: > someone? > > > > 2014-04-12 15:48 GMT-03:00 César Barone : > >> Hi, >> >> I am have a form where input fields are generated inside ng-repeat. The >> property name of input

Re: [AngularJS] angular locale files wrong for some latin american countries?

2014-05-20 Thread Pawel Kozlowski
Hi! Those files are generated automatically, check https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-found-an-issue for more info. So you should firstly check source of those data to determine if the source is wrong or maybe the extraction process have failed. Cheers, Pawel On T

[AngularJS] [angularjs] Templates compilation with gulp.js

2014-07-20 Thread Pawel Kozlowski
Hi! Just a quick opinion pool here: I'm on the hunt for the most used AngularJS plugin for gulp that can transform html templates to js files that stick those templates to the $templateCache. This one looks the most promising for now: https://github.com/miickel/gulp-angular-templatecache But the

Re: [AngularJS] ng-model is casting to a negative number?

2014-07-22 Thread Pawel Kozlowski
On Tue, Jul 22, 2014 at 1:49 PM, banjax wrote: Your problem is here: > {{ng-blah}} Your ng-model directive binds input's value to the 'blah' model variable while your expression uses arithmetic operation (minus) on 2 variables: 'ng' and 'blah' Rewrite your expression as {{blah}} and things shou

Re: [AngularJS] Re: How to access filter:search items and count?

2014-07-22 Thread Pawel Kozlowski
Hi! One way of doing it is to assign the filtered expression to a temp variable like so: and then, for ex.: {{filteredQualifiers.length}} The full example in action here: https://github.com/angular-app/Samples/blob/master/1820EN_04_Code/08%20-filters%20-%20array%20filters%20full%20example/ind

Re: [AngularJS] Problem building Angular 2.0 on windows.

2014-10-29 Thread Pawel Kozlowski
Hi! I think it was just fixed in master, see: https://github.com/angular/angular/commit/e1c84e02f8728f80ad53e9334b6e94bef98dd9a9 Make sure that you've pulled the latest version of the repo that contains this commit and try again. But given that most of the team is using Linux / Mac you might bump

Re: [AngularJS] How to use angular.bind(); function?

2014-11-19 Thread Pawel Kozlowski
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind Cheers, Pawel On Wed, Nov 19, 2014 at 2:38 PM, Ashok kumar wrote: > Hi i am new to angular js i was gone through the angular api references, > i had seen function called angular.bind(self, fn, args); i

Re: [AngularJS] Re: Any of you using Bootstrap 3 yet? aka, one of AngularJS's kryptonite because of how you have to wrap everything w/ Directives :-)

2013-12-29 Thread Pawel Kozlowski
Hi! On Sun, Dec 29, 2013 at 3:09 AM, Luiz Americo Pereira Camara wrote: > But seeing that https://github.com/angular-widgets/angular-jqm and > https://github.com/angular-ui/bootstrap/ (Bootstrap 3 support) are stuck, > made me do a step back in my decision. Not sure what you mean by "stuck" but

Re: [AngularJS] Re: Any of you using Bootstrap 3 yet? aka, one of AngularJS's kryptonite because of how you have to wrap everything w/ Directives :-)

2013-12-31 Thread Pawel Kozlowski
Hi! On Tue, Dec 31, 2013 at 2:31 AM, Ken Yee wrote: > Thanks to Pawel and the rest of their contributors for their hard work. > It'd be interesting to know what the hardest part of the effort as a > retrospective for some eventual Bootstrap 4 :-) Thnx for the warm words. As for the retrospect -

Re: [AngularJS] Re: Datepicker

2014-01-09 Thread Pawel Kozlowski
On Thu, Jan 9, 2014 at 3:16 PM, Kijana Woodard wrote: > This thread is a bit disturbing Yes, it definitively is... @Sander, you are good man, just don't get burned out on such questions Cheers, Pawel -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Loo

Re: [AngularJS] Re: Callin a login modal from different places

2014-01-25 Thread Pawel Kozlowski
Hi! There is really no need to use events for this, I agree that it would get complex. But creating a service to open a modal is really simple, check this sketch of the solution: https://github.com/btford/angular-modal Fully functional impl here: http://angular-ui.github.io/bootstrap/#/modal Che

Re: [AngularJS] Re: Callin a login modal from different places

2014-01-25 Thread Pawel Kozlowski
Hi! On Sat, Jan 25, 2014 at 2:21 PM, Alex Tan wrote: > What I need is to call login modal from different controllers, so the only > solution I see is that modal controller watches an event on rootScope. Then > whoever wants to call login modal, need to call a service to emit that event Hmm, you

Re: [AngularJS] Re: Callin a login modal from different places

2014-01-25 Thread Pawel Kozlowski
On Sat, Jan 25, 2014 at 3:32 PM, Alex Tan wrote: > and how does a service opens the login modal? By compiling modal's content and adding it to the DOM tree. Have a look at the code examples I've linked earlier in this thread. Cheers, Pawel -- AngularJS book: http://www.packtpub.com/angularjs-w

[AngularJS] [angularjs] Could use some help from $animate masters

2014-02-08 Thread Pawel Kozlowski
Hi! I'm toying with different approaches to using $animate with existing CSS frameworks (the objective is to use it with Bootstrap CSS). Here is a simple plunker illustrating how I would go about things _without_ using $animate: http://plnkr.co/edit/RlIBcBEQUfhfCBOVb5lv?p=preview This approach ha

Re: [AngularJS] Re: What is the best approach for autocomplete in AngularJS?

2014-02-19 Thread Pawel Kozlowski
Hi Daniel, On Wed, Feb 19, 2014 at 9:35 PM, D. Zen wrote: > I looked briefly at http://angular-ui.github.io/bootstrap/#/typeahead but > wound up using a variation of > > http://jsfiddle.net/sebmade/swfjT/ Out of curiosity, did you hit any particular roadblocks with http://angular-ui.github.i

Re: [AngularJS] function in controller dosen't work

2014-02-25 Thread Pawel Kozlowski
HI! Not 100% sure how you want it to work but this plunk might give you some ideas: http://plnkr.co/edit/yjd39fAiMNcOiOfXYtkZ?p=preview The main problem was scoping - item's template doesn't have the same scope as your page. And, BTW, you don't need to include jQuery and Bootstrap's JavaScript!

Re: [AngularJS] $pasre not giving me an assign function

2014-03-05 Thread Pawel Kozlowski
On Wed, Mar 5, 2014 at 4:27 PM, John McPeek wrote: > e getter that is returned doesn't have an assign function. I see in the docs > that I only get assign when the expression is assignable. What are the rules > on assignable or not? More or less the same as in JavaScript. Think about it like this

Re: [AngularJS] Angular UI typeahead and "$apply already in progress"

2014-03-05 Thread Pawel Kozlowski
Hi! The reason is that typeahead listens to click events on outside elements to close windows with matches but it does so too eagerly. Could you file a bug in https://github.com/angular-ui/bootstrap/issues?state=open Your use-case is really wired (I mean, I would never trigger clicks like this),

Re: [AngularJS] Fwd: Direct Client Requirement for the position of Business Systems Analyst - NJ - Mahwah

2014-03-28 Thread Pawel Kozlowski
On Fri, Mar 28, 2014 at 3:19 PM, Kumar R wrote: > Hi, Vivek Suvarna, > > This is technical forum don't post your advertisement here! I've banned this gentlemen from posting. Cheers, Pawel -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for boots

Re: [AngularJS] uib-accordion in angular 5.2 with bootstrap 4

2018-08-11 Thread Pawel Kozlowski
Hi! https://ng-bootstrap.github.io/#/components/accordion/examples is a replacement of uib-accordion for Angular and Bootstrap 4. If you face any problems with it please provide more details so I can help (author here). The best way of moving forward is to provide a minimal reproduction scenario

Re: [AngularJS] simple error, whats wrong

2015-01-20 Thread Pawel Kozlowski
Your "JSON file" is not a valid JSON at all - you need to quote keys for a given JSON to be valid. JSON != JS object. Cheers, Pawel On Tue, Jan 20, 2015 at 11:09 AM, Suk Khoi wrote: > i am learning angular following angular 50 examples but got stuck, iam > typing the same thing, but its not work

Re: [AngularJS] Server returning a 4xx but angular executes success function

2015-01-20 Thread Pawel Kozlowski
Impossible to say what is going on based on the code provided alone but I would suspect that you've got a buggy $http interceptor somewhere (an interceptor that doesn't reject promises properly on failed responses). Cheers, Pawel On Tue, Jan 20, 2015 at 11:28 AM, Elavarasan A wrote: > HI > > I a

Re: [AngularJS] I18N for Angular 1.4 status?

2015-03-03 Thread Pawel Kozlowski
Things will be announced during the ng-conf (http://www.ng-conf.org/) that starts this Thur and will be live-streamed. There will be i18n-dedicated presentation, so stay tuned! Cheers, Pawel On Thu, Feb 19, 2015 at 2:42 PM, TsenYing H wrote: > Wondering what the status is for the I18N functional

Re: [AngularJS] Browser support in Angular 1.4

2015-03-04 Thread Pawel Kozlowski
Yes, 1.4 is going to support the same set of browsers as 1.3. So IE9 is still going to be supported. If you want to know more about the state of Angular 1.4 tune into ng-conf live stream tomorrow, there is a presentation dedicated to 1.4. Cheers, Pawel On Tue, Mar 3, 2015 at 9:49 AM, Sarah D wro

Re: [AngularJS] Re: AngularJs 1.4 release date

2015-04-13 Thread Pawel Kozlowski
Hi, On Mon, Apr 13, 2015 at 9:16 AM, MPhil wrote: > It would be great if they had a timeline for this - as am waiting for the > new router functionality so can implement it in the application I am > developing. I personally would rather use stable releases rather than RCs or > betas every other

Re: [AngularJS] Updating a node_module

2015-04-30 Thread Pawel Kozlowski
Hi! You should send a pull request to a concerned module, not to the angular itself in this case. Cheers, Pawel On Thu, Apr 30, 2015 at 12:01 PM, wrote: > What are the guidelines and rules for updating node_modules. > > I have found an issue that is fixed by updating the version of jasmine tha

Re: [AngularJS] [angular2] Failed to run typescript-version example

2015-04-30 Thread Pawel Kozlowski
Hi! First of all, the code is written in AtScript, not TypeScript. Then you must know that Plunker is able to do AtScript -> ES5 transpilation using traceur. So the difference is that if you want to run ng2 code on your machine you need to transpile AtScript -> ES5 code. If you are not sure how

Re: [AngularJS] Angular2 element ids

2015-05-02 Thread Pawel Kozlowski
Hi! It is because HTML is not case-sensitive so browsers will change #nameInput to #nameinput before Angular's compiler processes HTML. Ng2 compiler, as AngularJS one, works on the live DOM, so it gets as an input the DOM structure as parsed / seen by a browser. Cheers, Pawel On Sat, May 2, 2015

Re: [AngularJS] Building Angular

2015-05-11 Thread Pawel Kozlowski
Hi! Yeh, our build got a bit too heavy, there is a PR to fix this: https://github.com/angular/angular.js/pull/11353 Cheers, Pawel On Mon, May 11, 2015 at 5:12 PM, Sean Poulter wrote: > The contribute instructions are clearly missing something. Npm reinstalls > dependencies EVERY time, which mak

Re: [AngularJS] local variables in Angular2 must be lower case?

2015-07-30 Thread Pawel Kozlowski
Hi! It is a browser that lower-cases HTML attributes before Angular can do anything about it. This makes sense since HTML is not case-sensitive and not case-preserving. To work-around this we've got convention in place: you can declare variables with mixed-case like this: Hope this helps, Pawel

Re: [AngularJS] (click) event on button not firing (when I would expect it to)

2015-08-04 Thread Pawel Kozlowski
Hi! You are expecting to catch a bubbling event so you should use ^ before the event name: Having said this, I'm not sure why exactly we are not catching bubbling events by default, so you might open an issue sharing your experience / expected defaults. There is also discussion going around bub

Re: [AngularJS] Angular 2 (Can't bind to X since it isn't a known property...)

2015-08-14 Thread Pawel Kozlowski
On Fri, Aug 14, 2015 at 4:40 PM, Micael Pedrosa wrote: > But returns: "Can't bind to 'class' since it isn't a known property of the > '' element and there are no matching directives with a corresponding > property" Right, this is correct, since by default ng2 is binding to HTML element propertie

Re: [AngularJS] Re: Angular 2 (Can't bind to X since it isn't a known property...)

2015-08-14 Thread Pawel Kozlowski
We've actually added special casing (class -> className) in https://github.com/angular/angular/commit/a7a1851c0f0a416fb7ccbf4c8a3f29bd431f992a You can check this commit to see how to add more aliases. Alternatively you can use the CSSCclass directive that "knows" hot to mutate CSS classes. Cheers

Re: [AngularJS] Angular API docs website broken?

2015-09-27 Thread Pawel Kozlowski
See https://twitter.com/petebd/status/648244118028685313 Cheers, Pawel On Sun, Sep 27, 2015 at 9:15 PM, Fred Janon wrote: > Anyone else seeing the same issues? > > The API page is showing some templating stuff in Win7 latest Chrome: > > https://docs.angularjs.org/ > > ---

Re: [AngularJS] Re: The "step by step guide" for angular 2 on angular.io is pretty terrible.

2015-10-13 Thread Pawel Kozlowski
Hi! All the docs for ng2 are being re-worked right now. The re-wamped docs should be on-line pretty soon (days). Cheers, Pawel On Wed, Oct 14, 2015 at 12:31 AM, Anthoni Gardner wrote: > Agree with this whole heartedly. > Does anyone know of any good websites / blogs that teach Angular2 ? > I kn

Re: [AngularJS] Re: Using newer system.js with Angular 2?

2015-10-16 Thread Pawel Kozlowski
On Fri, Oct 16, 2015 at 12:04 AM, Vern Jensen wrote: > Hmm, so I tried pkozwloski's project and did the steps on that page (npm and > gulp). I only get "Loading..." in the browser with these console errors: > > Error: Array.from is not a function Vern, if you are using a pre-ES6 browser you need

Re: [AngularJS] Angular 2 alpha 44 -- does it require traceur.js?

2015-10-20 Thread Pawel Kozlowski
See https://github.com/pkozlowski-opensource/ng2-play/issues/31 Cheers, Pawel On Tue, Oct 20, 2015 at 3:37 AM, Vern Jensen wrote: > I'm attempting to run Angular 2 alpha 44. I'm having a console error that > traceur.js cannot be found. I was under the impression (thanks Eric Martinez > for all y

Re: [AngularJS] angularjs support for old firefox browsers

2015-11-05 Thread Pawel Kozlowski
Hi! AngularJS won't support browser versions that are not officially supported by Mozilla. The version you are mentioning is almost 4 years old and according to https://en.wikipedia.org/wiki/Firefox_release_history it is no longer supported by the vendor. Using such an outdated version of a brows

Re: [AngularJS] Back to basics?

2015-11-06 Thread Pawel Kozlowski
Steven, was about to send an answer to your questions but alas, I can't find my magic crystal ball, not sure where I've put it :-) More seriously: no one knows what future holds. You've got _zero_ guarantees that any technology will last. There might be someone with a bright idea coming up with a n

Re: [AngularJS] ng2 Alpha.54

2015-12-15 Thread Pawel Kozlowski
Nope, this is related to this breaking change in alpha.54 (https://github.com/angular/angular/blob/master/CHANGELOG.md#200-alpha54-2015-12-15): "Previously angular2.js, angular2.min.js and angular2.dev.js bundles would have zone.js and reflect-metadata pre-appended. New bundles don't contain zone.

Re: [AngularJS] ng2 Alpha.54

2015-12-15 Thread Pawel Kozlowski
t;^3.6.0", > "gulp-typescript": "^2.10.0", > "concurrently": "^1.0.0", > "typescript": "^1.7.3" > } > > I am not clear what does it mean "those external dependencies can be easily > loaded into

Re: [AngularJS] 2.0.0-beta.0 cannot find angular2/http

2016-01-14 Thread Pawel Kozlowski
What is your setup (SystemJS? WebPack? something else?). If it is SystemJS you need to include http bundle, see: https://github.com/angular/angular/blob/master/modules/angular2/docs/bundles/overview.md Cheers, Pawel On Thu, Jan 14, 2016 at 6:06 PM, Justin Bleach wrote: > I can import core withou

Re: [AngularJS] Ugly and unreadable syntax

2016-03-09 Thread Pawel Kozlowski
Johny, I think it is important to recognize that given syntax might look "awful" for many reasons: - not familiar / not resembling known things - too verbose - too terse - not in line with personal preferences, - ... So to have any reasonable discussion here you would have to search more inside y

Re: [AngularJS] Hotlist Req

2016-04-05 Thread Pawel Kozlowski
On Mon, Apr 4, 2016 at 5:12 PM, Donald Organ wrote: > Can someone remove this person from the list? Banned the author and removed his latest post. Cheers, Pawel -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and s

Re: [AngularJS] Angular 2: component nested inside the same component?

2016-07-01 Thread Pawel Kozlowski
Hi! You might also want to check this tabset implementation from https://github.com/ng-bootstrap/core (Bootstrap directives for Angular 2): https://github.com/ng-bootstrap/core/blob/master/src/tabset/tabset.ts I did a lot of reviews of this design with Misko and other Angular team members. This i

Re: [AngularJS] accordian control in angular2

2016-07-25 Thread Pawel Kozlowski
You can't "create" (in the sense "generate) "an accordion from CLI but you can certainly use any of the existing libraries, ex.: https://ng-bootstrap.github.io/#/components/accordion Cheers, Pawel On Mon, Jul 25, 2016 at 10:24 PM, Prayag Ganoje wrote: > Hello, > > Is there any way to create Acco

[AngularJS] Bootstrap widgets for Angular 2 - a new release!

2016-08-10 Thread Pawel Kozlowski
For anyone interested - I've just pushed a RC5-compatible version of Bootstrap widgets (https://ng-bootstrap.github.io). Now with full `@NgModule` support, updated to latest forms etc. Enjoy! Cheers, Pawel -- You received this message because you are subscribed to the Google Groups "AngularJS"

Re: [AngularJS] Angular 2 guide: Class binding (Question)

2016-10-03 Thread Pawel Kozlowski
Hi, "class" and couple of other attributes are special-cased in the compiler to improve user ergonomics. You can find the complete list of special cases here: https://github.com/angular/angular/blob/1cf5f5fa38ea672a972313049c9de2db6024441d/modules/%40angular/compiler/src/schema/dom_element_schema_