AngularJS
Follow
28.9K views | +15 today
 
Scooped by William delmas
onto AngularJS
Scoop.it!

Facebook authentication in your AngularJS web application

Facebook authentication in your AngularJS web application | AngularJS | Scoop.it

When I started to work on this little experiment I was not a big expert in the matter of Facebook’s api (and even now I’m really far from that); in this case I think that the smarter thing you can do is start reading the Facebook’s document about Facebook’s authentication system.
You’ll discover that Facebook makes available different ways to authenticate the users of your website, or application, on the basis of the device they are using (iOS, or Android), and even for a web app is possible to choose between two different flows: with or without JavaScript SDK.
I choose to follow the login flow with Javascript SDK.

more...
No comment yet.
AngularJS
Ressources about AngularJS, single page application.
Curated by William delmas
Your new post is loading...
Your new post is loading...
Scooped by William delmas
Scoop.it!

Building Huuuuuge Apps with AngularJS

Building Huuuuuge Apps with AngularJS | AngularJS | Scoop.it

The AngularJS documentation is great for getting started and for looking up specific API calls. However, it doesn't really tell you how to organize and manage your app as it grows to tens or hundreds of thousands of lines of code. I've collected here some of my observations and best practices for how to manage your sprawling application. First we'll take a look at organization, then move on to some tips on improving performance, and conclude with a brief summary on tools, servers, and build processes. While this post will focus on big apps in particular, there's a great video on YouTube from the December 2012 AngularJS meetup on best practices that's also worth checking out.

more...
David Kossoglyad's comment, July 5, 2013 4:21 AM
Good article, but organization by features is more applicable to real-world apps.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

AngularJS - Overcoming performance issues. Limits.

We will discuss about...

1. View watches / data bindings

2. What you see is what you show

3. The risk of polluting scopes

4. Core directives to avoid

5. Splitting the page

6. Miscellaneous

7. Limits


Via Jan Hesse
more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularJS in Patterns

AngularJS in Patterns | AngularJS | Scoop.it

This example defines a simple directive, which is a UI component. The defined component (called “zippy”) has header and content. Click on its header toggles the visibility of the content.

From the first example we can note that the whole DOM tree is a composition of elements. The root component is the html element, directly followed by the nested elements head and bodyand so on…

In the second, JavaScript, example we see that the template property of the directive, contains markup with ng-transclude directive inside it. So this means that inside the directive zippy we have another directive called ng-transclude, i.e. composition of directives. Theoretically we can nest the components infinitely until we reach a leaf node.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Speeding up AngularJS apps with simple optimizations

Speeding up AngularJS apps with simple optimizations | AngularJS | Scoop.it
AngularJS is a huge framework with that already has many performance enhancements built in, but they can’t solve all our problems. No matter how fast the framework, we can all create sluggish code through bad practices and not understanding key concepts that help it perform well. The following performance pointers are some of the things I’ve learned from developing Angular applications that will hopefully enable you to keep building fast applications.
more...
No comment yet.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

Google's AngularJS Style Guide

Google's AngularJS Style Guide | AngularJS | Scoop.it

This is the external version of a document that was primarily written for Google engineers. It describes a recommended style for AngularJS apps that use Closure, as used internally at Google. Members of the broader AngularJS community should feel free to apply (or not apply) these recommendations, as relevant to their own use cases.

This document describes style for AngularJS apps in google3. This guide supplements and extends the Google JavaScript Style Guide.

Style Note: Examples on the AngularJS external webpage, and many external apps, are written in a style that freely uses closures, favors functional inheritance, and does not often use JavaScript types. Google follows a more rigorous Javascript style to support JSCompiler optimizations and large code bases - see the javascript-style mailing list. This is not an Angular-specific issue, and is not discussed further in this style guide. (But if you want further reading: Martin Fowler on closuresmuch longer description, appendix A of the closure book has a good description of inheritance patterns and why it prefers pseudoclassical, Javascript, the Good Parts as a counter.)


Via Jan Hesse
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Building the 2048 game in AngularJS

Building the 2048 game in AngularJS | AngularJS | Scoop.it

One of the most frequently asked questions we get is when would Angular be a poor choice to use as a framework. Our default answer is usually when writing games as Angular has it’s own event loop handling (the $digest loop) and games usually require lots of low-level DOM manipulation. This is an inaccurate description as there are manytypes of games where Angular can support. Even games that require heavy DOM manipulation can use the angular framework for the static parts, such as tracking high scores and game menus.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularJS adoption vs. rest of the world

AngularJS adoption vs. rest of the world | AngularJS | Scoop.it

Here are a comparison of technologies adoption, thanks to the "google trends" tool, each comparing :

angularjs tutorial (in red) 
vs 
[techname] tutorial (in blue)

The word "tutorial" help here to avoid noise signal due to ambiguous name (jsf is a too generic acronym), and it also help to detect which technology people will in adopt in the very near future (thus avoiding noise due to maintenance on an old technology).

The date following indicates when AngularJS overrun the [techname] technology. 


more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularJS picked as one of the three most exciting technologies by StackOverflow users.

AngularJS picked as one of the three most exciting technologies by StackOverflow users. | AngularJS | Scoop.it
more...
Sergio Aguilera's curator insight, November 9, 6:45 PM

Node.Js  y AngularJS entre las tecnologías más excitantes, según los usuarios de Stackoverflow

Scooped by William delmas
Scoop.it!

Making Angular.js Real-Time with Pusher

Making Angular.js Real-Time with Pusher | AngularJS | Scoop.it

Front-end application frameworks have given developers the tools to build client side applications with rich user experiences. Let’s say your application is built with one of these frameworks and you want to notify connected clients that something on the server has changed – how can you do that while keeping a rich user experience? This is wherePusher and angular-pusher come into play.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Creating Event Calendar with dhtmlxScheduler and AngularJS

Creating Event Calendar with dhtmlxScheduler and AngularJS | AngularJS | Scoop.it

AngularJS is a modern JavaScript framework that allows creating rich client-side apps in a fast and productive way. It goes without saying that AngularJS is convenient and powerful in working with HTML. However, it doesn’t have ready to use complex UI components yet. In this article we’ll try to partially eliminate this drawback by showing how to add support of dhtmlxScheduler, a Google-like event calendar, for an AngularJS app.

more...
No comment yet.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

CHrome application development with angularJS

CHrome application  development with angularJS | AngularJS | Scoop.it

The Chrome web browser is Google’s custom browser. Not only is it incredibly speedy and on the bleeding edge of web development, it is at the forefront of delivering web experiences both on and off the web.

Chrome Apps are embedded applications that run within the web browser, but are intended on delivering a native app feel. Since they run within Chrome itself, they are written in HTML5, javascript, CSS3, and have access to native-like capabilities that true web applications do not.

Chrome apps have access to the Chrome API and services and can provide a integrated desktop-like experiences to the user.

One more interesting differentiation between Chrome apps and webapps is that they always load locally, so they show up immediately, rather than waiting for the network to fully download the components. This greatly improves the performance and our user’s experience with running our apps.

In this article, we’ll walk through how to create an advanced Chrome application using Angular.


Via Jan Hesse
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Developing with AngularJS - Making it Pop

Developing with AngularJS - Making it Pop | AngularJS | Scoop.it

Welcome to the final article in a series on my experience developing with AngularJS. I learned its concepts, beat my head against-the-wall with and finally tamed it enough to create a "My Dashboard" feature for a client. For previous articles, please see the following:

Part I: The BasicsPart II: Dialogs and DataPart III: Services

The last mile of development for the My Dashboard feature was to spice things up a bit and make it look better. We hired a design company to come up a new look and feel and they went to work. Within a week, we had a meeting with them and they presented a few different options. We picked the one we liked the best and went to work. Below are screenshots that I used to implement the new design.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Building an AngularJS Dialog Service

Building an AngularJS Dialog Service | AngularJS | Scoop.it

One of the tasks I find myself performing a lot when building Line of Business (LOB) applications is displaying dialogs. Some of the dialogs are modal (the user can’t click on the background to dismiss it) and some are non-modal. For example, I’m currently working on a LOB application that displays modal dialogs as users delete items on a page.

 

 

more...
No comment yet.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

Is AngularJS Fast Enough?

Is AngularJS Fast Enough? | AngularJS | Scoop.it

“Angular is slow. And with dirty checking and HTML parsing always will be. You can’t fix broken design. Do I have to tel…


Via Jan Hesse
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Mob Programming AngularJs Dojo

The achieved goal :

  • angular js in a mvc .net project
  • 2 routes : home and event (ui-router)
  • An event page with headers, market type category selector, selection display
  • 100% code coverage but unit test written in Jasmin and run by Chutzpah
  • Web api consummation with Restangular
  • Web api 2.0 with an events route which return a mocked even
  • Create a “Angular Js best pratices” ppt : explain all the tricky point of angular (minify, module, scope, service, directive, promise, $ressource, Fouc,etc … + our conventions)
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Time Saving AngularJS Tips

Time Saving AngularJS Tips | AngularJS | Scoop.it


AngularJS is a powerful tool for creating dynamic web pages, but as with any tool it can make things more complicated and unwieldy when used incorrectly. Below are some tips for those looking to improve the performance or the stability of their AngularJS website. Some of these tips will save memory for your application, resulting in a smaller footprint, while others will focus on the development process – allowing for quicker identification of errors that would otherwise emerge at the most inopportune time.

more...
Rescooped by William delmas from Node.js
Scoop.it!

Create a TV Show Tracker using AngularJS, Node.js and MongoDB

Create a TV Show Tracker using AngularJS, Node.js and MongoDB | AngularJS | Scoop.it

This tutorial will show you how to build a REST API with Express, authentication and signup process with Passport, create and retrieve data from MongoDB using Mongoose. The front-end will be built using AngularJS and Bootstrap Sass. The last step involves using gulp.js to optimize your static assets.


Via Jan Hesse, Piyas De
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Faster AngularJS Rendering (AngularJS and ReactJS)

Faster AngularJS Rendering (AngularJS and ReactJS) | AngularJS | Scoop.it

Have you used AngularJs and ran into some performance problems? Using ReactJs rendering becomes much faster. A small examples explains how to use ReactJs for rendering in AngularJs and a comparison is made between native rendering and rendering using ReactJs.

I like AngularJS. I use it when I do some little fun projects and I use it professionally in large Web apps. I tried other frameworks as well, likeBackboneJS and EmberJS, which both are great tools as well. All three of them belong to the class of MVC frameworks (or MVVC whatever you want o call them). But whenever I used any of such a tool I always ran and still run into the same problem: Rendering performance of lists of items. Two way binding or one-way binding makes no real difference. For me BackboneJS had better performance for rendering than AngularJS. Lets put that on the back of two-way binding.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularJS: Form Validation

AngularJS: Form Validation | AngularJS | Scoop.it

This week we’re going to look at form validation with AngularJS. Angular has several directives that support form field validation, and they’re based on theHTML5 form validators. You can specify that a field is required, a certain size, a certain type, and should match a given pattern.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Authentication in Single Page Applications With Angular.js

Authentication in Single Page Applications With Angular.js | AngularJS | Scoop.it

I have been working a lot with Angular.js lately, and love how easy it makes it to create web applications with rich client-side functionality. It's an extremely useful asset in keeping your own client-side code lean, making it easy to separate business logic and declarative markup for anything view specific. However, it's not all roses, and I'm still struggling to find the best solutions to some problems I have encountered. One of which is a problem that exceeds the scope of Angular...

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Remote Desktop Client with AngularJS and Yeoman

Remote Desktop Client with AngularJS and Yeoman | AngularJS | Scoop.it

We should have a VNC server on the machine we want to control. This machine provides interface accessible through the RFB protocol. The proxy in the middle has RFB client, which knows how to talk to the RFB server. The proxy also provides HTTP server, which is responsible for serving static files to the client and also allows communication through socket.io. The last component in our diagram is the “AngularJS VNC client”, which consists few HTML and JavaScript files provided to the browser by the proxy. This is what actually the user of our VNC client sees. He or she use the form provided in the “AngularJS VNC client” in order to enter connection details and connect to the machine he or she wants to control

more...
No comment yet.
Scooped by William delmas
Scoop.it!

AngularStrap AngularJS 1.2+ native directives for Twitter Bootstrap 3.

AngularStrap AngularJS 1.2+ native directives for Twitter Bootstrap 3. | AngularJS | Scoop.it

AngularStrap was initially written to provide AngularJS wrapping directives for Twitter Bootstrap. It used to leverage the javascript code written by Bootstrap's contributors to minimize work, retro-compatibility issues & time to market.

While it worked pretty well, it required a big javascript payload: both jQuery & Twitter Bootstrap libraries. When the 1.2 release of AngularJS showed up with the ngAnimate module, greatly simplifying DOM manipulation, we knew it was time for a rewrite!

more...
No comment yet.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

AngularJS example more advanced than the tutorial on angularjs.org

AngularJS example more advanced than the tutorial on angularjs.org | AngularJS | Scoop.it

I have just been learning AngularJS and decided to build demo application that cover more techniques than the tutorial on angularjs.org. This application is only demo so it do not have complete server side, some features have the todos and there is not any test. 

This demo application is some kind of automotive adverts portal, so I called it MotoAds. It has two main features:

* List of adverts – includes an advanced filtering and sorting.

* Add advert – a form with some client side field validations.


Via Jan Hesse
more...
No comment yet.
Scooped by William delmas
Scoop.it!

Enhancing AngularJS Logging using Decorators

Enhancing AngularJS Logging using Decorators | AngularJS | Scoop.it

Let’s explore how to use Decorators to enhance AngularJS logging and supercharge the $log service. AngularJS has a great hidden feature $provider.decorator() that allows developers to intercept services and substitute, monitor, or modify features of those intercepted services. The decorator feature is not deliberately hidden… rather it is masked by so many other great AngularJS features. In this article, I will introduce the Decorator and show how to incrementally add functionality to the $log service… with practically no changes to your custom services and controllers.

 

 

more...
No comment yet.
Scooped by William delmas
Scoop.it!

Angular Directive Examples

Angular Directive Examples | AngularJS | Scoop.it

Over the last few months, I've been digging into the Angular framework. One of the things that I really like about Angular, and hope to learn to use extremely well as I progress, is their notion of a "Directive". Directives provide a means for extending both the semantic meaning and functionality of your markup. There are many different ways to implement directives, and the documentation on the angular site is still a work in progress, so I would like to share how I've used them up to this point.

more...
No comment yet.
Rescooped by William delmas from JavaScript for Line of Business Applications
Scoop.it!

How to build a large Angular.js application

How to build a large Angular.js application | AngularJS | Scoop.it

Angular.js is built from the ground up with testing in mind. In our opinion this makes Angular different from all other frameworks out there. It is the reason we chose it.

This testability is due to the feature set of Angular and the tooling available. Feature wise,dependency injection (DI), modules, directives, data binding, and the internal event loop all work together to create a testable architecture.

Angular maintains its own event loop outside the browser event loop to do dirty checking and make sure data is in sync. It will check all known objects for changes on every loop tick. This is done asynchronously. Because this loop is maintained by Angular, you can flush the queue of any outstanding request or pending change at any time, meaning you can test async code in a synchronous manner.

The test runner Karma, makes testing directives exceptionally easy. It transparently loads your templates as scripts and exposes them as Angular modules. You can use the same concept to package your app for production.


Via Jan Hesse
more...
No comment yet.