You can set it into $rootScope or a global controller scope in your app
Regards
Guillaume
Le jeudi 27 février 2014 17:18:12 UTC+1, duck a écrit :
I have a list of objects in the list view, now I want to click any one
object to take me a new page without fetching data from server,
so the
You'll need to keep your objects referenced in a service, then use some id
that maps to the $routeParam. Something like this:
function MyService(){
var objects = [
{ id: 1, data: 'the data'},
{ id: 2, data: 'more data'}
]
return objects;
}
//in new route controller - this not
Use ng-bind-html
http://docs.angularjs.org/api/ng/directive/ngBindHtml
On Thursday, February 27, 2014 7:35:33 AM UTC-7, Yonatan Kra wrote:
Hi,
I have a simple bound data such that:
div ng-repeat=item in items ng-bind=item/div
*items *exist in the scope and hold several text and/or HTML
Thanks Sander.
This surprises me since this date format is from JavaScript new Date()...
Marc
On Friday, February 28, 2014 5:32:39 AM UTC+1, Sander Elias wrote:
Hi Marc,
Your date is not a recognized date format, and does not get parsed at al.
try this:
span
The general practice is to put it in a service, which exists in a file
named services.js. I have my api for many assets all in one service and
the file contains many services in addition to the API $resource. If you
want it to be somewhat modular to share between different angular apps,
then
Luke,
Thanks for your suggestion.
On Friday, 28 February 2014 13:12:03 UTC+5:30, Luke Kende wrote:
Hard to know without seeing it. It sounds like your problem is that you
want the tooltip to show on custom events, like on failure callback (I'm
assuming the field has lost focus at that
Hello,
I want to recover data from a JSON file and display them in div with
ng-grid property.
*My file JSON* :
{
prestataires:[
{
code : 001,
nom : MIEJERON,
prenom : Fabrice,
mail : f.mieje...@bayard.fr,
tel :
*FIRST OFF, THIS POST IS VERY DIFFERENT
FROM:
https://groups.google.com/forum/#!searchin/angular/matrix/angular/3HaJChviUdo/HCjdEUvNyI4J
https://groups.google.com/forum/#!searchin/angular/matrix/angular/3HaJChviUdo/HCjdEUvNyI4J
SO
PLEASE DON'T MISUNDERSTAND AND MARK IT AS A REPEATED
Ah! I've encountered this before!
Don't wrap your $scope.gridOptions = { data: 'myData' }; inside the $http
call. I'm not sure if the next step is required but, ensure you initialize
$scope.myData outside of the $http call first.
On Friday, 28 February 2014 18:31:22 UTC+8, Kévin Ribot wrote:
Agreed, Service is better practice.
On Friday, 28 February 2014 16:15:41 UTC+8, Luke Kende wrote:
If you are using $rootScope, which I personally think a service is the
better practice, you will need to use ng-click and point it to a function
that references the clicked object:
li
Highly recommend to view this excellent post on the subject with step by
step instructions on how to get up and running:
https://bitbucket.org/david.antaramian/so-21662778-spa-authentication-example/overview
On Thursday, February 27, 2014 11:15:56 PM UTC+2, Joe Larson wrote:
I have been
Beyers Cronje, thank you so much. This is exactly what I was looking for.
Saved my week.
Joe
On Friday, February 28, 2014 6:05:03 AM UTC-6, Beyers Cronje wrote:
Highly recommend to view this excellent post on the subject with step by
step instructions on how to get up and running:
I have found the solution :
$scope.url = '/scripts/json/myfile.json';
$scope.myData = [];
$http.get($scope.url)
.success(function (thisdata) {
//convert data to array
var listePrestataires = angular.fromJson(thisdata);
$scope.listePrestataires =
hi guys,
I am trying to send request post using $resource for multipart/form-data,
but it is not working. Here my factory:
angular.module('webappApp')
.factory('produtoAdminService', function ($resource) {
return $resource('../api/adminproduto/:upload',{upload:@upload},{
Noup, I didn't... But I am glad I came here and asked... I think the
answers to this thread are taking me to the right direction. Thanks!
On Friday, February 28, 2014 1:55:31 AM UTC-8, Daniel Carter wrote:
Just create a single service.
I take it you know about the $resource service for
Thanks for reply Sander, however the issue is slightly different than what
you propose. My secondary directive needs to be neutral in regard to
current scope and simple take what is available. I have however figured out
a workaround - it is to use element.isolateScope() method to get an access
I'm wondering if anybody's developed a Firefox extension using AngularJS.
Currently, I'm porting a Chrome extension to Firefox. For some reason, in
Firefox, loading external templates doesn't work. Here's an example of a
directive that works fine inside a Chrome extension:
// Rest of code
Hello, Elias
This email is regarding the example at
http://plnkr.co/edit/IQSvr5L5IMRRzfrXVYSR?p=preview ( ng-repeat ).
Thanks for the plunker. Actually I'm afraid I gave you a bad example of
what I wanted.
I wanted to extract the element itself ( dom ) that's being generated by
ng-repeat, not
Look at this http://docs.angularjs.org/api/ng/directive/script
2014-02-28 20:27 GMT+04:00 Shaun Donnelly shaundonne...@gmail.com:
I'm wondering if anybody's developed a Firefox extension using AngularJS.
Currently, I'm porting a Chrome extension to Firefox. For some reason, in
Firefox,
Given the following routes:
when(/) ...
when(/foo) ...
when(/:bar) ...
when(/baz) ...
I would think a $location of /baz would hit the last route, but it
doesn't. It instead matches on the :bar route. If I switch the
declaration order:
when(/baz) ...
when(/:bar) ...
it works as expected.
Has anybody successfully managed to make them all work together and debug
your angularjs apps using the combo Brackets + Theseus?
I'm using a lightweight node server to serve static content and consuming
a REST api from other servers, therefore I need the node running and I need
it the app to
I have a form with a bank of radio buttons that allows you to filter the
results of a list. I also setup a route that pulls a param from the
$routeParams that will filter the list. I want the radio button to reflect
what the routeParam is, but I can't figure out how to set the radio button
to
Hi,
I'm currently learning AngularJS, I'm doing the Plural sight course.
It's showing Routing but I'm having an issue and I don't know why or how to
fix it.
In the tutorial he's using the code:
HTML
*lia href=#/newEventCreate Event/a/li* about:blank#/newEvent
ANGULAR
var
Try changing the when value to '/newEvent'
and changing the href on the anchor to /newEvent.
On Fri, Feb 28, 2014 at 6:01 PM, cutey Love cuteywithl...@gmail.com wrote:
Hi,
I'm currently learning AngularJS, I'm doing the Plural sight course.
It's showing Routing but I'm having an issue and
Hi everyone,
I have a problem with the control of URL on the application that uses
Angularjs
I see on the documentation of angularjs, that talks about $routeProvider
1. $routeProvider.when('/Book/:bookId', {
2. templateUrl: 'book.html',
3. controller: BookCntl,
4. });
That's
On 03/01/2014 12:03 PM, bolang wrote:
Hi All,
I have finished my first experimental angular app based on angular
tutorial.
After getting bigger, looks like it is become a mess, it also not
integrated with grunt, jshint, and has no test
Now, i want to start my second app.
Which
Hi Sam,
Nifty! Basically, you add an extra controller to an existing directive. The
idea is tempting.
However, in the long run, I don't know. What happens if a plugin collides
with existing functionality, or even worse with each other?
This might turn very nasty to find!
Regards
Sander
--
In my case I use it with an approved list of controllers each with distinct
functionality. Like everything else, it is about discipline that you must
maintain to avoid chaos :). It also helped me divide the work among many
developers.
Sam
On Saturday, March 1, 2014 12:19:28 AM UTC-5, Sander
Hi Jake,
Well, there are carousels around already, as Ricardson pointed out already.
There are even more if you google around for a bit.
My guess is, you still want to build your own ;)
have you thought of the possibility of repeating your own directive?
something like:
carousel
Hi Brad,
A bit hard to tell without a plunk of a fiddle.
Radio buttons will flow around to your model, so you need to set your model
depending on the variables you get from the route.
simple sample http://plnkr.co/edit/Qhg7kH6twGYG1NW04E4Y?p=preview
Regards
Sander
--
You received this
Hi Bo,
In the current situation, neither one!
Both are actively working on new versions, that are more geared toward the
new angular style guide. However, I have not seen those yet.
If you want something that's available now, have a look at
Hi Biloki,
you don't have to load a template, you can choose to just fire up an
controller too.
like this:
$routeProvider.when('/new', {
controller: 'newController',
});
$routeProvider.when('/detail/:id', {
controller: 'detailController',
});
Regards
Sander
--
You received this
Hi Zhenghao,
Have a look at this http://plnkr.co/edit/rQVjdYbku9rzX39Rs3fv?p=preview!
I have taken your plunk, and removed the unneeded libraries.
Also I introduced underscore, to safe me from typing up some functions to
render your data usable.
I used underscore to transfer your data in an
33 matches
Mail list logo