I use a lot of ng-repeats in my code. What I'd love to do is define
somewhere at app initialization that, unless I specify otherwise: 'track by
item.$id' is what I want to do, and that there should always be a
filter:{_error:undefined} on the ng-repeat microsyntax as well.
I *could* probably
Hey sander,
That is pretty much perfect, thanks! This way I can do some string voodoo
on the incoming ngRepeat attr to make sure there's the right setup, and I
don't have to go and edit every single html template already in my code.
e
On Thu, Feb 26, 2015 at 9:01 AM Sander Elias
Please provide an active plunker http://plnkr.co/ or other live
representation of your problem. It is hard to debug when half of your code
is missing (50% of the problems on this list tend to come from not properly
declaring module dependencies early on in the bootstrapping process).
That said, I
What are you actually trying to do? This kind of violates a scoping
separation issue- what if wi has different values based on different states
of each of the instantiated ng-repeat items?
It seems like, if you want to do something with higher-level values
propagating up and down, the best thing
Hey List,
I'm trying to call $scope.$apply (because I am getting data into my model
outside the angular lifecycle) in a controller that is using the newer
'controller as' syntax. Should I just inject $scope and call $scope.$apply
as usual?
e
--
You received this message because you are
What I do is put an ng-if on the ui-view elements that hold my views, and
then just set a watch variable to true or something.
Like
div ng-if=app.loaded
div ui-view=header/div
/div
Then in the top-level app controller I have some async code that does stuff
to log the user in either
doubting the behavior using the new syntax?
Sent from my iPhone
On Dec 12, 2014, at 3:55 PM, Kirru kiran.g...@gmail.com wrote:
yes.. you can call it by just injecting $scope.
Thanks
K
On Friday, 12 December 2014 15:48:31 UTC-5, Eric Eslinger wrote:
Hey List,
I'm trying to call $scope.$apply
When my users hit the logout button, I delete their API key from
localstorage (or the cookie if that's were I stash it) and then call
window.location.reload() rather than try to muck around with resetting the
app manually.
e
On Thu Dec 11 2014 at 5:50:23 AM Ami Kapadia ami.ms...@gmail.com wrote:
any sample application pls post the
URL. thanks
URL:http://plnkr.co/edit/imbxIBiNLXwNEM6NrXNS?p=preview
-woodson
On Wednesday, December 10, 2014 1:35:28 AM UTC+5:30, Eric Eslinger wrote:
The plunker is also missing some other stuff that may prevent it from
properly working. When I view
The code you provided has a number of typos in it. If you clean up those
typos, what you are attempting to do will work.
This is by no means exhaustive, but:
1) You need a comma after the templateUrl line (json syntax)
2) The templateUrl line should be a template line instead (as you're
Thanks for the insight, Sander.
I think part of the reason I was leaning away from ngMaterial is that a lot
of what we're doing doesn't need angular databinding at all (placement of
stuff on the screen using flexbox etc), but some does (ng-if for rendering,
etc).
I think my best bet will bet to
It would be pretty good if you provided a plunker http://plnkr.co/
example of your failing code. Based on what you've shared, that's
more-or-less stuff that should work (to my eyes at least).
Are the different files being loaded in the proper order (either via
concatenation or their direct
, 2014 12:33:52 AM UTC+5:30, Eric Eslinger wrote:
It would be pretty good if you provided a plunker
http://www.google.com/url?q=http%3A%2F%2Fplnkr.co%2Fsa=Dsntz=1usg=AFQjCNE0-NbnrUuIl5HxKn1d1rYMLeJJ0g
example of your failing code. Based on what you've shared, that's
more-or-less stuff that should
The .success method in $http is identical to the .then method, but the
.then method follows the standard promise terminology. It's a good idea to
get to know how promises work, and that you can use $http calls with other
promise stuff (promise#all, etc). As I understand it, the .success stuff is
What are people's thoughts on this front? There are two major things I like
about polymer: I think webcomponents are the future, and the paper
components reference implementation of the material design spec is rad.
I'm examining options for building some large-ish angular stuff using
material
?
Regards,
David
On Thursday, December 4, 2014 9:12:14 AM UTC-5, Eric Eslinger wrote:
If the directive is only put into the DOM once, the link function is only
called once. Unless the fragment you provided is inside an ng-repeat or
something, it is correct that the link function only gets called
If the directive is only put into the DOM once, the link function is only
called once. Unless the fragment you provided is inside an ng-repeat or
something, it is correct that the link function only gets called the one
time. Maybe if you could make a plunk http://plnkr.co/ that encapsulates
your
Is there a reason you'd do it this way rather than making a custom
directive with an isolate scope?
On Tue Dec 02 2014 at 8:18:38 AM Kranthi Kiran kranthit...@gmail.com
wrote:
adding an ng-if='true' inside the ng-include directive did the trick for
me. I guess ng-if creates a new scope for the
/f42_Contacting_Main'}
).
/*when('/lead',
{controller: 'LeadLkpCtrl',
templateUrl: 'apex/f42_Lead_Lookup'}
).*/
otherwise(
{redirectTo: '/main'}
);
}]);
Am I missing something?
Thanks!
2014-11-30 16:32 GMT+01:00 Eric Eslinger eric.eslin
I was just about to respond about that- ngInclude or a custom directive is
more appropriate inside a ng-repeat. I prefer custom directives, myself.
e
On Sun Nov 30 2014 at 7:26:06 AM Rohit Singhal rohitsinghal...@gmail.com
wrote:
Never mind, solved this using ngInclude.
On Sun Nov 30 2014 at
Personally, I would suggest putting the definition of the /lead route in
the LeadLookup module. If you're going to modularize, don't do it by half
steps. This is what I do, so that way you can put the /module routes,
tests, controllers and so forth all in the same directory and all you have
to do
['helloDude','$scope', function($rootScope,helloDude) {
should be
['$rootScope', 'helloDude', function($rootScope, helloDude) {
if you want to use that notation. Personally, I just use ng-annotate
instead.
e
On Sun Nov 30 2014 at 10:28:02 AM Sandeep Jsk jollusandeepku...@gmail.com
wrote:
Oh, also, you need to declare angular.module('myApp', ['hellService']) if
you want access to helloDude in the myApp module, since you declared it in
the other module. I'd recommend a good read through of the angularJs
documentation.
e
On Sun Nov 30 2014 at 10:50:41 AM Eric Eslinger eric.eslin
to come in a text format,
and not string... so the problem is solved :)
Thank you!
On Thursday, November 27, 2014 5:17:33 PM UTC, Eric Eslinger wrote:
You can write your own sort getter. Instead of orderBy:'age', you can put
a function on the scope that does a better job of getting
Ah no. You definitely cannot protect confidential information on the front
end, at all, ever. Some creative people in your office?
What if one reads the javascript source to your code? What if they
de-uglify it? What if they look at the network tab of chrome dev tools and
see the API calls to
you could name your paths in an unintuitive fashion manually, and then do
some kind of reversible transform to represent resource ids (e.g.,
represent resource ids as a long base64 bitstring, say like how mongo does
UUIDs) which you convert into requests for real ids on an http interceptor
(your
You can write your own sort getter. Instead of orderBy:'age', you can put a
function on the scope that does a better job of getting the search key.
Ex:
$scope.sorter = function(val) {return parseInt(val.age)}
ng-repeat=item in theList | orderBy:sorter
e
On Thu Nov 27 2014 at 8:11:12 AM
I'd love a weigh-in from mods and stuff. Personally I don't particularly
mind a small number of job postings as long as they're relevant (who
doesn't like feeling like people want your skills).
OTOH, other lists I've been on quickly degenerate into recruit-fests, and
there's been a few pretty
Is there a good reason to have two instances of the same application
running on the same page? If you control the application, it may make life
a ton easier to have it be one application with multiple UI-views.
e
On Tue Nov 25 2014 at 8:34:05 AM Trevor Burkholder tbur...@gmail.com
wrote:
I
object already serve as the model?
On Thursday, November 20, 2014 10:41:16 AM UTC-8, Eric Eslinger wrote:
Opinions ahead. I'm no expert.
You should look at ui-router for sure. It's like fifteen times more
useful than ngRouter. I use it to define nested views, which can be swapped
out
All promise resolves (e.g., then() and catch()) end up getting resolved
asynchronously. Even promises that don't themselves do anything
asynchronous (as in, they return a value rather than a promise to a value)
end up executing asynchronously, as I understand the code.
However, angular is already
Basically, you have to instead create an interceptor that has method
responseError on it, instead of error. So something like:
angular.module('app').config(function($q, $httpProvider) {
$httpProvider.interceptors.push(function($rootScope) {
return {
responseError: function(rejection) {
I have some trusted HTML code coming off of my database. Due to the
vagaries of how it's created (text editor), none of the A elements have a
target=_blank on them.
It occurred to me this morning that instead of editing the way the HTML is
emitted from the editor, I could maybe alter how
You should check out json web tokens - jwt.io; they're awfully helpful.
What I do (b/c I started this before I learned about JWT) is handle logins
on the server side, and return a token value to the client. The client uses
that token as a bearer token on all $http request by saying
and there purpose.
On Nov 21, 2014, at 2:02 PM, Eric Eslinger eric.eslin...@gmail.com
wrote:
You should check out json web tokens - jwt.io; they're awfully helpful.
What I do (b/c I started this before I learned about JWT) is handle logins
on the server side, and return a token value
That could probably work pretty well in certain cases, especially when your
$http calls don't vary much but do have some extra massaging to do. I do
like how it encapsulates stuff like loading / error / loaded state
messaging quite nicely.
I'm personally not fond of it primarily because I like to
Opinions ahead. I'm no expert.
You should look at ui-router for sure. It's like fifteen times more useful
than ngRouter. I use it to define nested views, which can be swapped out
dynamically. So I define a header, body, and footer on the / route, and
then can say in these subroutes, use the
I use ng-annotate and uglify for that, which I automate using gulp.
https://www.npmjs.org/package/gulp-uglify
https://www.npmjs.org/package/gulp-ng-annotate
That allows me to write non-array-style code, but still be able to uglify
and minify.
e
On Thu Nov 20 2014 at 11:55:52 AM Bedugger
, Eric Eslinger wrote:
That could probably work pretty well in certain cases, especially when
your $http calls don't vary much but do have some extra massaging to do. I
do like how it encapsulates stuff like loading / error / loaded state
messaging quite nicely.
I'm personally not fond
On Friday, 21 November 2014 05:35:46 UTC+11, Eric Eslinger wrote:
That could probably work pretty well in certain cases, especially when
your $http calls don't vary much but do have some extra massaging to do. I
do like how it encapsulates stuff like loading / error / loaded state
messaging
2014 10:35, Eric Eslinger eric.eslin...@gmail.com wrote:
Huh, that's interesting Johan. It certainly makes sense; I manually deal
with getting external stuff loaded in index.html in the right order, and
only really use angular-filesort for the project code files. Doing it with
a name convention
So, I loaded up your site and just looked at the google chrome debug
network tab to see the waterfall. It looks like you're *not* minifying
right now (the all.js file isn't minified, and has comments etc in it - it
also took my browser almost two seconds to fetch, although 840ms of that
was
...@gmail.com wrote:
surely, you dont want to have to script include= all the individual
files for dev, thats where sourcemaps come in?
On 20 November 2014 17:13, Eric Eslinger eric.eslin...@gmail.com wrote:
Hmm, yeah, sourcemaps would be an issue. I don't put sourcemaps in my
concat'd code
Did you try a ng-click=showDetail(user.id)? I am pretty sure the ng-click
syntax doesn't do brace interpolation.
e
On Wed Nov 19 2014 at 7:20:10 AM Carlos Saludes saludes...@gmail.com
wrote:
Hi!
I need to show a users list through restful. I got the json data and I use
this code to show de
Carlos Saludes saludes...@gmail.com
wrote:
Ok... pretty simple... I feel like an idiot.
Thank you Eric.
El miércoles, 19 de noviembre de 2014 16:26:54 UTC+1, Eric Eslinger
escribió:
Did you try a ng-click=showDetail(user.id)? I am pretty sure the
ng-click syntax doesn't do brace
In order to build code that I think will make the 2.0 transition more
smooth, I've been working on integrating traceur and ES6 stuff into my
angular development. I've also split a fair bit of stuff into plain-old
classes, treating my directive definitions and routing definitions as
pretty much
There's a 1.3 version out now, which contains a few, but not many, breaking
changes (mostly having to do with how older http responseInterceptors could
be written). I'd suggest converting to 1.3, as that's the one that will get
updated (as far as I know). I was able to transition without rewriting
I don't know if this is the right place for my suggestion, but I think it
would be a really good idea to convert your hash to something like:
[{item: 'apple', count: 12345}, {item: 'orange', count: 1000}], at least
if you have structured and predictable data. You're conflating two
attributes
Are the different apps all guaranteed to be loaded on-screen at the same
time? One reason you'd have multiple apps would be different pages. If
they're guaranteed to all be on the screen at the same time (they're all
embedded in the same index.html), why not make it just One Big App?
Personally,
I think that the key point in Todd Motto's frame of reference (which is
more-or-less how I've been doing newer angular stuff) is like:
Services handle the $http request and abstract all that behind an object
facade. So you do stuff like var Potato = new Tuber('potato'). Then in the
constructor
I do it in a way similar to how Sander suggested. The template for my
comment directive includes a reply form hidden behind an ng-if. That way it
appears and disappears appropriately from the DOM (ng-if doesn't compile or
inject nodes until its watch value is true), but the template for the reply
From my perspective, it is weird to nest ng-repeats with the same iterator.
At the very least, I'd do [[cellA in cells]] and [[cellB in cells]]. My
intuition would be that the inner repeat would shadow the outer, but
javascript has weird ways of dealing with variables, and I don't know if
the
If you use ngRouter to load the data instead of the controller, as part of
the routing process, you can use the resolve feature of the route
description. That will delay loading the page until the promise resolves.
On the other hand, you could put a big Loading ... div on top of the
regular
Personally, I do it in the controller. I have a hard-and-fast rule: $scope
manipulation is in the controller. So the service method will return a
promise that resolves to the data, and the controller attaches the data to
the scope.
Note, you can probably also pass {params: {queryfor: queryFor}}
Anton, I'm pretty sure that when someone says, I want to learn angular,
and the community member says, Go learn something else, that community
member (a) is not welcoming, and (b) is probably not really a member of the
community but is instead a troll.
OP: I picked up a _lot_ about angular by
Hyperbolic claims about 1.3 being deprecated are a long way from being
helpful. If you want to write software that lasts forever, I suggest Cobol
or Fortran. On the other hand, if you want to write web software that will
run on modern browsers for quite some time, angular 1.3 will continue to
- not at 1.3, but the most important things for a long
weekend :)
Am Mittwoch, 12. November 2014 16:42:56 UTC+1 schrieb Eric Eslinger:
Hyperbolic claims about 1.3 being deprecated are a long way from being
helpful. If you want to write software that lasts forever, I suggest Cobol
or Fortran
I agree with y'all (except Alex, ofc). I had some ideas about replying to
this thread, but then this blog post came along and encapsulated them
nicely.
http://onehungrymind.com/10-things-consider-keeping-level-head-angularjs-2-0/
e
On Tue Nov 11 2014 at 7:13:20 AM Paul Spaulding
Can you do it this way?
http://plnkr.co/edit/tJafLUW8PoRmsL5L91SZ?p=preview
On Fri Nov 07 2014 at 4:53:57 AM pvenkadas...@apptivo.co.in wrote:
I have two examples.
angular 1.2: http://plnkr.co/edit/AKKkfymxFpzo1fL7ktX0
angular 1.3: http://plnkr.co/edit/bOKAlqQ9cBJbQYCHSYaz
I actually need
yah. you can also do $scope.user = {} too.
On Thu Nov 06 2014 at 1:21:13 PM Mohammad Kamruddin Ali Ahemad
mohammad.kamruddin@gmail.com wrote:
Ok. Got it. I guess we need to do $scope.user = new Object(); before
doing $scope.user.firstName as $scope.user is not defined yet.
On Friday,
It's worthwhile to use the $templateCache. I use a gulp tool for it,
https://www.npmjs.org/package/gulp-angular-templatecache/
In particular, with a templatecache, you can change the 500 XHR requests
needed to load route templates into a single request, which will improve
page-load times. If your
Seems like you could put a ng-readonly or ng-disabled attribute on the
thing in question. ng-disabled=scopevar.whatever, and then set
scopevar.whatever to truthy or falsy as needed. Let angular handle updating
the actual elements and attributes for you.
On Wed Nov 05 2014 at 4:39:09 PM KamBha
Personally, I just do stuff like ng-repeat=item in itemlist
ng-click=rowClicked(item), which will call rowClicked with the particular
item from ng-repeat, which is what I think you're asking for.
e
On Sat Nov 01 2014 at 11:42:46 PM Justin Walsh jus...@silvermoongroup.com
wrote:
Apologies, I
This is the kind of thing that needs to be set on the server side, rather
than on the client side, as I understand it. So it depends a lot on how
you're serving up your angular partials and stuff.
On Fri Oct 31 2014 at 1:09:41 PM Nathan Weinrich nateweinr...@gmail.com
wrote:
Here is the
Today in, there's got to be a way to do this, if you want to use orderBy
on an ng-repeat (I find the orderBy docs to be a little thin), but sort on
more than just one field, you can pass an array in to the orderBy predicate:
My ng-repeat wants to sort communities by name, but preferentially show
I use ui-router, which exposes ui-sref in the HTML side
(ui-sref=app.search({query: 'foo', sort: 'asc'}) converts into an
appropriate a href or onclick if it's not in an anchor element) and
$state.go on the controller side which works more or less the same way.
Dunno if the basic router does that,
That kind of depends in general. As Nicholas pointed out, you may end up
posting those transient view values back to the server for persisting,
which could be ignored or could throw an error or (worse of all) get
persisted if you're going fully schemaless (but at that point, you have a
pretty big
That's an IRC channel hosted on freenode, so you can connect to it with
other IRC clients of your choice.
e
On Mon, Oct 20, 2014 at 1:03 PM, Raif Harik reha...@gmail.com wrote:
hey @rishi,
thanks for the link, there is activity in that room. but for the love of
god, what a horrible ui/ux. I
I use xchat on ubuntu, it's decent.
e
On Mon, Oct 20, 2014 at 1:11 PM, Raif Harik reha...@gmail.com wrote:
praise jesus.
and I guess I am too not cool to know about.
so is there a client you like or recommend?
thanks for the tip,
r
On Monday, October 20, 2014 3:10:02 PM UTC-5, Eric
My sense of restangular is that it was pretty useful if your use case
matched the design of restangular directly. Mine didn't, and it was just as
much work to get restangular to do what I wanted as to build some custom
abstraction on top of $http. So I went with the latter plan.
It is also worth
If the attacker has access to the user's computer, you're kind of in
trouble no matter what. You could obfuscate the token, but clients are not
to be trusted. The best thing to do is assume that tokens are held only by
one client (and make sure you are only sending the token over HTTPS, and
not in
This is an example of 'fighting the framework'. With angular, you don't
need to do it that way. Instead of doing elem append or whatever, you can
make this your template:
div ng-if=lockedlocked element/ng-if
div ng-if=!lockedunlocked element/ng-if
Angular handles adding and subtracting elements
The problem with the dot (as I understand it) is that child scopes work by
prototypally inheriting from parent scopes.
So if you have a situation where you've got a scope property, let's call it
$scope.tuber = 'potato', and you've got some child scopes which access the
same tuber property. If
https://docs.angularjs.org/api/ng/directive and scroll down to ngMouseFoo
e
On Mon, Sep 29, 2014 at 1:53 PM, Chandrika Mohith
chandr...@confluxtechnologies.com wrote:
Hello Everyone,
I want to display text on the Image whenever the mouse is hovered on the
image.
Can someone please let know
markzolo...@gmail.com wrote:
No, I am not doing anything. Just copying files. that's all.
On Mon, Sep 29, 2014 at 7:23 PM, Eric Eslinger eric.eslin...@gmail.com
wrote:
are you compiling the coffeescript files into javascript? that'd cause
issues if you didn't.
e
On Mon, Sep 29, 2014 at 5:19
Sorry, my big angular project isn't open-sourced yet. Soon.
e
On Sun, Sep 28, 2014 at 2:00 PM, mark goldin markzolo...@gmail.com wrote:
Is it possible for you to show some working example, please?
Thanks
On Fri, Sep 26, 2014 at 8:48 PM, Eric Eslinger eric.eslin...@gmail.com
wrote:
my
, September 25, 2014, Eric Eslinger eric.eslin...@gmail.com
wrote:
In the event of substates, I define substates. As an example, one
application route has subtabs. Continuing the example above, I'd define
app.tubers to be #/tubers, and define the 'body@app' view to contain
tabset.html.
Then I
correction, I do
$http.get('http://example.com/bindata.jpg', {responseType: 'arraybuffer'})
dunno if the camelcase is significant, probably is.
e
On Fri, Sep 26, 2014 at 11:15 AM, Eric Eslinger eric.eslin...@gmail.com
wrote:
I do this: $http.get('http://example.com/bindata.jpg
Another thing I do once in a great while if I have a lot of different
render templates in a single directive and they're all kind of complicated
is use ng-include.
div ng-include=item.type + '.html'/div would (I think) work. Here's a
plunk: http://plnkr.co/edit/F0ZQjv?p=preview
Of course this
You probably have a promise problem, where the login value is eventually
set by your $http call or some other async thing.
e
On Fri, Sep 26, 2014 at 1:52 PM, Esau e.red...@gmail.com wrote:
I'd look at select2, of which there's an angularized widget in ui-bootstrap
I think. It was a lot of work to wrestle with to get it to do Just What I
Wanted, so I ended up writing my own.
It's not too bad (code for my tag selector below). All you really need is
some CSS to define an overlay div
?
Thanks
On Fri, Sep 26, 2014 at 8:45 AM, mark goldin markzolo...@gmail.com
wrote:
Got it, thanks.
On Fri, Sep 26, 2014 at 8:33 AM, Eric Eslinger eric.eslin...@gmail.com
wrote:
I define a different module for each top-level route. I have startup
stuff in my app module, then each #/foo
It would help if you posted some code, but generally speaking the problem
is like:
$http.get(URL).then(function(data){$scope.potato = data;
console.log(data);});
console.log($scope.potato);
The log of $scope.potato returns undefined, the console.log(data) comes out
fine. But it happens *after*
I'm pretty sure that this is expected, given the protoypal inheritance of
child scopes from the parent. It's definitely odd now that you mention it,
but you can work around pretty easily by not shadowing scope variable
names, or by using an isolate scope.
e
On Fri, Sep 26, 2014 at 9:28 PM, Zane
opinions
on this behavior because I don't think this is intuitive in the least.
On Saturday, September 27, 2014 12:20:16 AM UTC-5, Eric Eslinger wrote:
I'm pretty sure that this is expected, given the protoypal inheritance of
child scopes from the parent. It's definitely odd now that you
Personally, I use ui-router. I defined a top-level ui-view (called app),
into which I placed a ui-view for header, footer, and body. Substates of
app correspond to each page of the application, defining new content for
the body view, and the menu bar and footer stay the same.
On Thu, Sep 25, 2014
Also, try putting a dot in your model. As in, instead of looking at
$scope.value, do $scope.view.value
Angular in the past at least, had issues with watching primitive types on
the scope.
https://egghead.io/lessons/angularjs-the-dot
On Wed, Sep 24, 2014 at 1:36 PM, Mark Volkmann
My first program ran on a TI-99/4a, although I was (also) 8, and doing
things like FOR-PRINT-NEXT ing a line of numbers indicating that you were
time-travelling was the height of excitement. Then I learned binary by
doing manual bitmap conversions to hex. That was fun. Little dancing man.
e
On
Pardon my coffeescript, but this is what I do. I basically defined
BatchRequest.get(url) that returns a promise to resolve just like $http.get
(I only package up get requests). BatchRequest will set a timeout for 50 ms
and collect all the gets it receives in those 50ms and post them in one big
Personally, I use socket.io to handle websocket events and user presence
indicators. Whenever $stateChangeSuccess fires, I ping socket.io with that
event, and on my server I keep track of that stuff. But in general, you
could listen for $stateChangeSuccess and do a $http.put or something.
Eric
If I remember correctly, the editor in a lot of the egghead.io tutorials is
JetBrains webstorm (and it's an IDE, so I believe it's running the code as
well). There's some sublimetext in there as well (from one of the other
video people).
e
On Thu, Sep 18, 2014 at 1:56 PM, mcs130 mcs...@gmail.com
or similar full
blown IDE.
M
On Thursday, September 18, 2014, Eric Eslinger eric.eslin...@gmail.com
wrote:
If I remember correctly, the editor in a lot of the egghead.io tutorials
is JetBrains webstorm (and it's an IDE, so I believe it's running the code
as well). There's some sublimetext
In my own experience, I actually prefer the expression style whenever
possible, but that's due to separation of code. I'm not wild about
cluttering up my scope with one-off, difficult-to-find logic code. If an
expression is used multiple times for the same semantic purpose, I'd
consider putting it
As an aside, have you considered using the ng-class directive? It's pretty
handy for programmatically (and declaratively) manipulating classes on an
element. It's not always the answer, but I keep finding neat uses for it.
e
On Wed, Sep 17, 2014 at 8:16 AM, Sander Elias sanderel...@gmail.com
Actually, the problem is the inverse- I have a directive from a third-party
library ( https://github.com/flowjs/ng-flow ), which handles events by
calling $scope.$broadcast on its scope. As I understand angular events,
this will only propagate down the scope chain, to the scopes inside the
Hey angular peeps.
I'm using ng-flow and the flow.js library to handle media uploads to my
application. I can register listeners in flow.js directly using flow.on,
but I'd prefer to use the angular $scope.$on approach, to avoid having to
call $scope.$apply and stuff.
The problem is that my app
Personally, I mostly follow the best-practices document outlined here:
https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/mobilebasic?pli=1
Specifically, no more than one file per module, application routes are
sub-modules, and everything is stored together in a
it that in the document
thanks,
Spiros
Τη Κυριακή, 14 Σεπτεμβρίου 2014 6:45:22 μ.μ. UTC+3, ο χρήστης Eric
Eslinger έγραψε:
Personally, I mostly follow the best-practices document outlined here:
https://docs.google.com/document/d/1XXMvReO8-
Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/mobilebasic?pli=1
Is one of the two hits an OPTIONS request? If so, that's the CORS preflight.
e
On Fri, Sep 12, 2014 at 7:16 AM, mark goldin markzolo...@gmail.com wrote:
Service:
var myModule = angular.module('motoAdsApp', []);
myModule.factory(AirportService, function ($http, $q) {
return {
, Eric Eslinger wrote:
Is one of the two hits an OPTIONS request? If so, that's the CORS
preflight.
e
On Fri, Sep 12, 2014 at 7:16 AM, mark goldin markz...@gmail.com wrote:
Service:
var myModule = angular.module('motoAdsApp', []);
myModule.factory(AirportService, function ($http, $q
1 - 100 of 223 matches
Mail list logo