Relative Content

Tag Archive for angularjs

Functional programming pattern for async JavaScript code

I have adopted a pattern in one of my projects that I really like and I suspect it’s likely to be something standard. I’d like to describe it here and see if you guys can tell me how other JavaScript programmers solve this type of problem.

AngularJS directive as components

I am in a project where we want to componentify a lot of “information boxes”.
These boxes (lets say they are mostly different types of tables) should easily be included into different pages and even different projects(we include the components as a library into an angular js project, so angular js a requirement). In the long run these components might even be available as an API for other developers to use.

How do I create a modal service with AngularJS?

I’m trying to make a service that’s polymorphic based upon what mode is specified in the URL. If the char param in the route is set to ‘p’, I want to use a PresentMode service. If the char param is set to ‘n’, I want to use a NoteMode service. Each of these present the same interface, but I want to choose one at a time.