Component is a special kind of directive that uses a simpler configuration which is suitable for a component-based application structure.
0
votes
1answer
49 views
What is a component in Angularjs?
I was doing some reading about directives and was wondering what the distinction was between a directive and a component, when I found that there are lots of components in Angularjs.
There is a ...
3
votes
0answers
26 views
When should I use angular.component instead of angular.directive?
Angular1.5 provides us the new concept - Component, like an improvement for old element-directive one.
It would be nice to have clear distinction between them: when to use what.
There is ...
2
votes
1answer
58 views
Can you have a stand alone directive in Angular 2
I'm playing around with Angular 2, What I'd like to do is to have a stand alone directive directly assigned to an element within the HTML. Is this possible?
Directive:
import {Directive, ElementRef} ...
1
vote
0answers
54 views
AngularJS 1.5 components in tables
With the release of AngularJS 1.5, I thought it would be a good idea to break up my existing application to use the new Component-based Architecture they're advocating.
I was able to convert most of ...
0
votes
1answer
67 views
What is the best way to pass functions between inner components in AngularJS 1.5?
I was wondering what is the best way to pass functions down through 2 or more levels of components? There's no simple way of skipping the function wrap when using '&' bindings?
Here's an use ...
1
vote
1answer
135 views
angularjs 1.5 component dependency injection
this may sound newb, but I have been following this tutorial for angularjs component.
I am new to components and how do I inject a constant Utils or authService to my component like this?
...
1
vote
1answer
137 views
AngularJS 1.5 component example
I'm working on an Angularjs project using .component() with template property, but I don't know how to use templateUrl.
Is there anyone familiar with that can provides me a working example?
Thanks.
2
votes
0answers
55 views
AngularJS2 dynamically loading a template
I started doing some research into using AngularJS2 and one of the questions I had that I can't find a solution for. I have a requirement that depending on the data I receive from my model, I wish to ...