Hi Leonan,
A better solution is to store/fetch/update your data from a service. You
can inject that service in every controller you need it, and use the data
that is in there. $resource does a lot of that for simple rest servers.
As you navigate between views, you can get the Id you need from th
Hi Leonan,
No!
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@g
Hi Paul,
The easy way out? use ng-show, for a small part, that is not an issue. If
you part is bigger, put the ng-if inside your tag.
I'm above."
Transcluding, and ngIf are difficult to combine. It can be worked around,
but its a lot of work. A simple solution might be, check in your
transclu
You didn't lose your id. It's a parameter of your edit state, isn't it? You
are passing this parameter with your ui-sref...
ui-sref="editPosition({id: positions._id})"
You can retrieve its id inside your edit state's controller and then use it
to call the server and do whatever you want to do th
Hello,
Is it true? It is a best practice, create controller for each CRUD
operation?
Ex:
One for create user;
One for list user;
One for edit user;
One for delete user;
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this gr
Yes what moment I'll do that?
Because when i click to edit it redirects to edit page (i lost my id, here)
Em sábado, 18 de julho de 2015 20:40:55 UTC-3, fasfsfgs escreveu:
>
> If I understand it correctly, you have the position id in your edit route.
> With that, just ask the server for the posi
I've got a "multi-transclude" service in my application which simply calls
the $transclude function in a directive's postLink function and does a
mapping of elements with "transclude-id" in the directive's template to
elements with "transclude-to" in the transcluded content.
For instance, the d
If I understand it correctly, you have the position id in your edit route.
With that, just ask the server for the position with that id. Does that
make sense?
On Sat, Jul 18, 2015 at 8:26 PM, Leonan Luppi
wrote:
> I have a shref to my edit page, how can i get data ?
>
> Em sábado, 18 de julho de
I have a shref to my edit page, how can i get data ?
Em sábado, 18 de julho de 2015 20:25:37 UTC-3, Leonan Luppi escreveu:
>
> Hey, Thanks for you reply.
>
> Yes, you right! it's a good practice get data from server. But how can i
> do that?
>
> See my table:
>
>
>
>
> id
> description
> actio
Hey, Thanks for you reply.
Yes, you right! it's a good practice get data from server. But how can i do
that?
See my table:
id
description
actions
{{position._id}}
{{position.description}}
Em sábado, 18 de julho de 2015 20:09:40 UTC-3, fasfsfgs escreveu:
>
> Forgive me if
Forgive me if I'm wrong but I think a good practice is to get this single
item again from the server since this route could be accessed without going
thru the list first.
If you don't want to do that for whatever reason, you could make your edit
route a child from your list route.
Then they could
Hello,
How can i get data from ng-model when i call new route.
Example:
I have a product CRUD (Create, read, update, delete) and two page, one
display with datas and other to edit my single data (that I'll
select).
On tag, i have a route that redirect to edit page, how can i get
the row da
Hello,
In fact, bad conception of my app. Just need to fit datetimepicker and the
$http request in the same controller, using a $watch to catch anychange to
the date.
Everything is synced now.
Thomas
var app = angular.module('app', ['ui.bootstrap']);
app.controller('DatepickerCtrl
Hi Anurag Agarwal,
Can you please show how I can do that. I'm very new to AngularJs.
On Saturday, July 18, 2015 at 10:05:56 PM UTC+5:30, Anurag Agarwal wrote:
>
> Hi,
>
> May be a simple callback could solve your problem.
>
> Regards
> www.techvalens.com
>
> On Saturday, July 18, 2015 at 1:57:33
Hey guys.
So i am using express.js GET request to see if i am logged in, but i'm not
quite sure how to handle it withing the angular side.
I know i'll need a controller to present data i will get from the log
session, but i am not quite sure where i should 'Get' the information from,
i understoo
Hi,
May be a simple callback could solve your problem.
Regards
www.techvalens.com
On Saturday, July 18, 2015 at 1:57:33 AM UTC+5:30, Vijay Kumar wrote:
>
> Hi,
>
> I'm new to angular Js. I'm using service and i'm getting back the values.
> but i'm not able to access those values outside the ser
Hello,
I'm newbie to AngularJS.
I create 2 controllers : 1 to handle a datetimepicker, 1 to handle an $http
request.
I would like to create a binding as :
- when a new date is choosen in the datetimepicker, r
- refreshing the $http request, passing the new date as parameter, so the
second contro
If you did a copy paste there is an error in this code:
$scope.myId = data(0).user_id;
should be:
$scope.myId = data[0].user_id;
That is probably why you don't get the expected result. (probably there is
an error in your developer console!)
Regards
Sander
--
You received this message because
18 matches
Mail list logo