Stream

Join this community to post or comment

Accio Code

Getting Started  - 
 
 
Now that we have the gulp file set up, we can move on to creating the base file for our AngularJS Single Page Website.
View original post
2
2
VonVictor Rosenchild's profile photoLuis Juárez's profile photo
Add a comment...

Gerard Sans

Discussion  - 
 
Popcorn time! Sit back and chill. Overview of #Angular2 by Joe Eames Pluralsight http://bit.ly/angular2-overview ಠ‿ಠ
37
21
VonVictor Rosenchild's profile photoAykut Yararbas's profile photoPatrice Chalin's profile photoLuis Juárez's profile photo
2 comments
 
2.0 is a ways out, and you can use angular on other stacks as well
Add a comment...

Virender Verma

Discussion  - 
ngDialog. Modals and popups provider for Angular.js applications. No dependencies. Highly customizable. Demo ★ Docs · Tweet · Follow @likeastore. Created by likeastore.
2
1
Michel Santos's profile photo
Add a comment...
1
Mike Janega's profile photoirth orbits's profile photo
2 comments
 
+Mike Janega's answer is awesome. Another way to think about it is using Factories to sync state data with current controllers on $location change. This can take place as a promise in ui-router's state resolve property, data property, or other ui-router 'hooks'. Someone please correct me if I'm wrong, but i don't think much time is needed to inject service data into a new state so the transition effect is seamless. 
Add a comment...

Anil Singh

Discussion  - 
Hello everyone, I am going to share the code sample for how to use the ng-style in angularjs. The ng-style is used to handle the css property just like css style. Here we can use css style name and its value with respect to y...
2
Add a comment...

Mayank Jani

Getting Started  - 
 
Angular JS – ng-repeat directive
Using ng-repeat directive: 1. 2. Thanks, Mayank Jani
1
Add a comment...

Nasa Nguyen

Discussion  - 
 
TypeScript and Angular 20 Jonathan Turner

#angularjs #angular2 #javascript #webdev #typescript  
15
12
Mark Gvero's profile photoSandro Marques's profile photoRodrigo Cayoja (Oztreiker)'s profile photoNestor Moran's profile photo
 
Wow, Angular 20. I still learning 2
Add a comment...

Kent C. Dodds

Hosting an Event  - 
 
Happening soon. Should be interesting.
 
+Jeremy Wilken, +Jim Cummins, and I (and maybe some others) are just going to talk about how we do our build and app structure at work. This is informal, unofficial, and irregular. Hopefully it's instructive to anyone who watches.
This Hangout On Air is hosted by Kent C. Dodds. The live video broadcast will begin soon.
Q&A
Preview
Live
Build and App Structure
Wed, May 20, 2:00 PM
Hangouts On Air - Broadcast for free

8 comments on original post
1
1
Mike Janega's profile photoKent C. Dodds's profile photoAlex Ouatu's profile photo
2 comments
 
Thanks for the feedback. But to be totally honest, this was more for our benefit than for anyone watching. The only reason that I decided to do a hangout on air is I thought people may benefit by being a fly on the wall during the chat. Sorry it was less so for you...
Add a comment...

Created by

SuperReivan

Discussion  - 
 
app.controller('window', ['$rootScope', '$http', function ($rootScope, $http) {
    $http.get("json/products.json").success(function (prods) {
        $rootScope.products = prods.protien;
    });
    
    
}]);

app.controller('detail', ['$rootScope','$scope','$routeParams', function($rootScope , $scope, $routeParams){
    $scope.whichProduct = $routeParams.productId;
    $scope.ind = $routeParams.inde;
    $scope.model = $rootScope.products[inde];
    
    
    
}]);

Hello, can anybody explain to me why $scope.model is not data binding to the view? i have the correct controller selected in the config module.
1
david chollez (dcz switcher)'s profile photo
4 comments
 
The objectiv is : few things in controller, service instead, read the view code allow to understand what app do
Hope it help
Add a comment...

Jim Lavin

Getting Started  - 
3
2
Jason Noll's profile photoEugene Serkin's profile photoVonVictor Rosenchild's profile photoLuis Juárez's profile photo
4 comments
 
+1 very bad audio. I thought my speakers will explode at some point.
Add a comment...

Virender Verma

Getting Started  - 
Aleph Zero is a fun and easy trivia game to learn, meet, and compete...
2
2
VonVictor Rosenchild's profile photoAleksey Politov's profile photo
Add a comment...

Virender Verma

Discussion  - 
5
6
Johan Nordberg's profile photoJ.D. Nielson's profile photoReji M Mohan's profile photoSashi Kolli's profile photo
2 comments
 
Pretty strange ideas regarding $scope. The point is that $scope is a fairly good option when it comes to relatively small apps without too deep prototype chains (where  relatively easy to understand where data come from). If your prototype chains are not very deep/long then $scope is a better choice since it's a simpler and more concise way of exposing a view-model to a view because views in this case are much clearer because of using much more consice names. Besides prototypal inheritance is a powerful feature as long as you understand how to use it correctly. 
Add a comment...

Simon CHEN

Discussion  - 
 
Hello everybody,
I would like to open a modal from my angular-app that is running in an iframe.
 Right now, the modal shows in the iframe and i tried to make it show in the parent window or top window.
It is the same domain.
How can i do it?
1
Jeremy Roux's profile photoSimon CHEN's profile photo
2 comments
 
+Jeremy Roux Can you give an example?
Add a comment...

raphael houtin

Discussion  - 
 
Hello Guys,

I'm starting angularJS. For my company I need to create a ticketing module to recuperate existing tickets from my database, create new tickets and other things like that.

I decided to work with angularJS and Firebase. For the moment, I have added my tabs with ui bootstrap tabset. It works fine. But I want to create, inside these tabs,a dynamic table to collect my tickets.

Here is my current code :

demandescpm.js

angular.module('srpTicketingApp')
.controller('DemandescpmCtrl', function ($scope, $window) {
$scope.awesomeThings = [
    'HTML5 Boilerplate',
    'AngularJS',
    'Karma'
];
$scope.tabs = [
    { title:'Ticket à traiter', content:'Tab for displaying the untreated tickets' },
    { title:'Tickets non lus', content:'Tab for displaying the unread tickets' },
    { title:'Mes tickets et tickets suivis', content:'Tab for displaying the follow\'s tickets' },
    { title:'Nouveau ticket', content:'Tab for creating new tickets' },
    { title:'Paramètres', content:'Tab for creating and displaying new categories & subcategories' },
    { title:'Recherche', content:'Tab for searching tickets' },
    { title:'Statistiques', content:'Tab to see Wallboard CPM' }
];'


demandescpm.html

<div ng-controller="DemandescpmCtrl">
<tabset>
    <tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active">
        {{tab.content}}
    </tab>
</tabset>
And what it looks like for the moment :

http://i.stack.imgur.com/HYsgE.png

Is it possible to add dynamically my tables into my tabs-content to recover tickets or am I beginning the wrong way with my current code ?

Thanks in advance and sorry if my english is bad but it's not my mother tongue :)
1
Ashu Mittal's profile photoraphael houtin's profile photo
4 comments
 
Hello !

Thanks for you answers :).
I found a solution. My tabs and tables don't need to be dynamic ! Just my contents needs it. So I put the rest in static and it works perfectly !
Add a comment...

Mayank Jani

Getting Started  - 
 
Angular JS – ng-controller
Using ng-controller Thanks, Mayank Jani
2
Add a comment...

Mayank Jani

Getting Started  - 
 
First step into Angular JS world
Hello Guys, I have developed "Hello World" example into Angular JS: You have to download angular.min.js file and put into current directory. Thanks, Mayank Jani
3
1
Андрей Иванов's profile photoManoj Kumar S's profile photo
 
A good example!
Add a comment...

Fatiha LAKHMOR

Getting Started  - 
 
Hello people,
I am trying to use angulartics for google analytics in angular apps, I just found the official doc not detailled enough http://luisfarzati.github.io/angulartics/
Could you have any resources / tuto that can help me configure pages to be tracked, ID tracker... ? 
1
Add a comment...

Fernando Arias

Discussion  - 
 
Hi! I need to open a popup in the response of a $http.post callback, which is triggered by a button click. Browser logically blocks popup. Does AngularJS have a solution for this? Thanks!
1
1
Luc Sorel Podbox's profile photoYury Tarabanko's profile photo
6 comments
 
or maybe just change the location of the popup (after the callback) like this:
popup.location.href = 'new url';

My previous answer may look over-complicated but I haven't used this simpler solution. However, the main idea of the solution I propose is to open the popup with a real user click and then update it when the callback comes
Add a comment...