Ok Jeff you are right. I do not know how I could not see it.
Thank you very much
2013/12/29 Jeff Hubbard lord2...@gmail.com
$http.get() doesn't take a config object. Try using $http() instead.
On Saturday, December 28, 2013 7:56:44 PM UTC-8, Adrian Ferreres wrote:
Hello:
I have two
Thanks Daniel,
Is there any MD5 encryption on client-side data for this
type of hacking?
Pushpendra
On 2 January 2014 13:15, Daniel Tabuenca dtabu...@gmail.com wrote:
Using HTTPS for serving scripts can help prevent man-in-the-middle
attacks, and provide assurance that the
how do you run the test?
1.my setup works without the var protractor = require .. part, since
running with protractor gives you the protractor object
2. why do you need ptor.driver? just finished a bunch load of protractor
testing with no ptor.driver needed - just using ptor directly.
On
Hi,
I'm designing a view for displaying large results set (list of users), thus
it is paginated server side.
So far I've been binding ng-click=changePage(pageNum) for my pagination
links, however I'd like the page number to be persisted in the url, thus I
thought of switching to simple
Apologies not sure what happened there. I have fixed the plunker.
Unfortunately as well as adding new elements, I also need to amend some
existing ones (add ng-class attributes) so I would need to compile quite a
few of them anyway. I was also influenced by this post which suggests that
I
I'll open this up bit more;
I could have voteService that returns doSomething function.
Now from my checkbox directive I could
1) Inject voteService
directive('checkboxHandler', function(voteService) ... and call doSomething
directly
or
2) By using isolated expression scope I could do
Hi,
I developed a API that returns data as json and i have a html page that
using resource will access that api to present data.
My problem is that when i start my api and call the html file i get is
error in chrome:
XMLHttpRequest cannot load http://localhost:9000/api/json. No
Hello -
I am new to angularjs and am trying to integrate it with our current site.
Currently we are using asp.net using mvc. I need to keep all the views as
.aspx and .ascx and not use html because we do some backed manipulation
with the views before they are rendered to the client. Just to
I have a simple(?) Angularjs repeat list that when I add a new item to the
list, displays the new item as I expect.
tr class='claimrow' data-ng-repeat='c in dp.claims'
td
div contentedittable=truesome data/div
/td
...
/tr
So adding an item to dp.claims adds a
This has to be implemented on the server side, not the client side:
https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
On Thursday, January 2, 2014 6:14:19 AM UTC-8, Daniel Lopez wrote:
Hi,
I developed a API that returns data as json and i have a html page that
using
Hi Novo,
Did you try the button on the right upper corner, the one that say's: 'view
source' ? ;)
it will take you here:
https://github.com/angular/angular.js/blob/v1.2.6/src/jqLite.js#L15
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
AngularJS
Hi Ed,
As you know which row has to be selected, you can create an small directive
that put the focus on the first 'input'
If you put your sample up in a plunk or fiddle, I will happily take a stab
at it!
Regards
Sander
--
You received this message because you are subscribed to the Google
I'm not sure how MD5 would prevent the kind of attack he is proposing
though. If the hacker has access to script source and can poison caches
they would presumably be able to edit the invocation of any MD5 hash
encoding and otherwise do anything else the application is normally allowed
to do.
Oh, by the way, the newer versions of angular use queryselectorall in
jqlite, this will make your task a bit easier:)
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,
Hi,
A refresh flushes everything from memory. I guess that you'r state is saved
somewhere that keeps retained. However, as everything else is brand new,
you can get stuff like this happening.
the solution is to automatically re-login on refresh, or to completely
remove all state that has to do
Hi Daniel,
It enables you to calculate an md5 hash for your script, and compare that
with the server. that way, you know pretty sure your script is not altered.
If you demand the checksum on the server, before giving out any data, you
can be fairly sure that the scripts are not altered.
But this calculation is client-side. If the attacker has full access to
client-side scripts, they can easily ajax in the server-script, run an md5
on it and return that (while what's actually executing on the browser is
the compromised script).
On Thursday, January 2, 2014 9:33:06 AM UTC-8,
An alternative to changing the server-side configuration to allow CORS, you
can use Angular's built-in jsonp capabilities:
http://docs.angularjs.org/api/ng.$http#methods_jsonp
Like so:
var url = http://localhost:9000/api/json?callback=JSON_CALLBACK;;
$http.jsonp(url)
If he has indeed full access, there is nothing that can be done except
vigilant server-side security. However, that's hard as the client is
completely compromised, and the attacker has all the 'keys'.
Real security is very hard to reach on client-server systems. Even on
non-web applications
I know the row, so I could use DOM functions, but I don't know WHEN since I
don't control the rendering.
I'll try to get an example
On Thu, Jan 2, 2014 at 12:06 PM, Sander Elias sanderel...@gmail.com wrote:
Hi Ed,
As you know which row has to be selected, you can create an small
directive
Hi all,
Here https://github.com/lorenzofox3/lrDragNDrop is a set of directives to
make ng-repeat items drag source and/or drop target to easily manage
collections.
Note: if you are interested in this module, you may also be interested in
angular-dragon-drop
Yeah, just want to make sure the original poster understands that MD5 will
not solve the particular scenario he presented. SSL would go further, but
still he should still be fully validating any request on the server.
--
You received this message because you are subscribed to the Google
here is a jsfiddle: http://jsfiddle.net/ed4becky/et7jv/
--
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
hey,
trying to get a grip on encapsulating calls for remote data (via $http,
$resource, or otherwise) into services.
my initial thought was to try and have the service hide the fact that
promises may or may not be used under the hood,
but surveying the current landscape, i see promises being
A few things to consider:
If checkboxHandler is meant to be a generic directive where what is done
when something is changed can vary, then you would pass in the method to
call in your HTML and wire it up through the isolate scope of your
directive.
If checkboxHandler is always meant to use
Hi Ed,
here is a sample http://goo.gl/93AXHC on how to solve this!
Is this enough to get you started?
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
Hi David,
I only took a quick look at ember, so I have no experience there!
Nevertheless I think it is entirely possible what you want to do.
As long as you make sure your directive is completely self-contained, it
should be to ember no different than any other html-tag.
so, as long as you
Just wrote my first custom directive that uses transclusion.
It provides a modal dialog using Twitter Bootstrap.
However, when I include elements inside it instead of just text
the elements render on the main page instead of inside the dialog.
For example, this works:
dialog title=Foo
some text
Hi,
I am having issues rending charts (directive) when the data to populate the
chart is obtained from a service call using $resource (and $http). The
chart is rendered from a directive in an html view template.
I understand that $resource returns an empty object or array based on the
call
Yeah, that might be a good idea to suggest on the dev list. `ng-transclude`
is a very simple and naive directive. I can imagine many situations where
it would be hard for it to know what you mean without being explicit about
it.
--
You received this message because you are subscribed to the
Daniel is right.
Also, I think the promises are underestimated in general. Most of the guys
I have asked did not actually know how to use them other than calling
.then method on $http artifacts.
Regards,
Witold Szczerba
---
Sent from my mobile phone.
On Jan 2, 2014 8:49 PM, Daniel Tabuenca
Hi Everyone
I have defined some custom directives. Is there a definite sequence when
they run? Which one will run first? Can I define the running sequence?
Thanks,
Ian
--
You received this message because you are subscribed to the Google Groups
AngularJS group.
To unsubscribe from
Can I ask something slightly related here. How do we maintain the user id
if we are posting data to this API via POST. For example joomla might
render the 'ap' instead of a static web ap and the joomla can then pass in
a token which must be related to the same session or the save doesn't
Yeah promises are great because they map perfectly with the asynchronous
nature of the browser platform. Netflix has been very successfully using
promises on the server side as well. Almost all of their server-side
services are promise-based which has proved invaluable to adapting to
Angular starts at the root node of the application (where ng-app is) and
goes down the tree node-by-node. For each node it encounters it tries to
determine all the directives that are on that node. If it finds multiple
directives on one node it will order them by greatest to least priority
Thank you for the reply.
For dynamically loaded partial view, from console log, I found the custom
directive apply to inner node (div in my case) first, then goes to outer node.
For normal index.html file, it is from outer node to inner node. I don’t
know why.
I have nested div
Hi Calvin,
You can use the same toolset you used before angular. you can use a cookie
to retain the session, and/or use an token you put in the header of each
request. You can even put the token in the default/general settings, so you
only need to to it once.
Regards
Sander
--
You received
Hi Paul,
I put in an timeout to simulate data coming in at a later time, also I took
your
fiddle http://jsfiddle.net/SanderElias/emL7D/, and changed the directive
a bit.
basicly I made it a lot simpler. I think it should work now with async data
too.
for a directive like this, you only need a
Thank you for the quick response, Sander. I have updated my directive to
match your fiddle but I am having similar results... chart is not rendering
due to $scope.model.data values being undefined.
Since I last posted the fiddle the returned object has changed to the
following for both
Hi. I'm working on angular js just from two weeks. I have a main page
index.html in dat i hav included ng-app=dashboardApp.now i should include
dashboardApp in controller(example.js) file, i should run evrything from
index.html file.M not getting how to do it.Can anyone pls help me out.
Thanks
This is my example.js file. now m trying to write code for datepicker but m
not getting.please do the needful.Thanks
'use strict';
angular.module('dashboardApp'.controller('exampleCtrl', function ($scope) {
});
--
You received this message because you are subscribed to the
Hi Paul,
Your directive is probably indeed firing before the resource comes back.
that should not be the problem. In the watch you can detect if the data is
there, and if not, just return.
I suspect your problem is not as much with the directive, as it is with the
way you handle your data. If
Hi. I'm working on angular js just from two weeks. I have a main page
index.html in dat i hav included ng-app=dashboardApp.now i should include
dashboardApp in controller(example.js) file, i should run evrything from
index.html file.M not getting how to do it.Can anyone pls help me out.
Thanks
This is my example.js file.
'use strict';
angular.module('dashboardApp'.controller('exampleCtrl', function ($scope) {
});
in each and evry controller i should include dis 'dashboardapp' and
conroller name 'exampleCtrl'.
but i want to define my own controllers with this
Not sure I understand what the issue here is. But if you want to include
datepicker here (refer
herehttp://plnkr.co/edit/QAxwgLSWQaYbGzkzeu4g?p=preview and
here http://mgcrea.github.io/angular-strap/#/datepicker), all you need to
do is
1. Add $scope.datepicker = {date: new
I have added a plunk at http://plnkr.co/edit/Kpn6mskPlgwQlGa4GLQv. In
addition to what was in the jsFiddle, I have added 2 json files
(count.json, countget.json) that are called from the $resources. This data
would normally come from a ReST endpoints.
I am still reviewing the code as I am not
46 matches
Mail list logo