angularjs-components Questions
3
Solved
I've got a simple contactList component, which has 2 bindings: contacts and onRemove.
contacts is just an array of contacts to display
onRemove is a callback function
app
.component('contactLi...
Interpellation asked 11/8, 2016 at 15:12
6
Solved
How can I listen to angular component binding change and perform actions?
angular.module('myapp')
.component('myComponent', {
templateUrl: 'some.html',
controller: MyController,
controllerAs: ...
Recruitment asked 28/2, 2016 at 10:1
1
Documentation for a change in $compile when upgrading from AngularJs 1.5 to 1.6 states:
pre-assigning bindings on component/directive controller instances is disabled by default, which means that ...
Packet asked 10/7, 2018 at 21:53
3
I'm refactoring some angular directives to angular 1.5-style components.
Some of my directives have behavior that depends on a certain attribute being present, so without the attribute having a sp...
Zulema asked 25/5, 2016 at 13:16
3
Solved
Our project is currently still running on AngularJS (v1.6) + TypeScript, but we want to start making the app ready to upgrade to the latest Angular, by implementing components, similar to how they ...
Scalene asked 11/1, 2019 at 11:40
7
Solved
I've been upgrading my custom directives to the new component architecture. I've read that components do not support watchers. Is this correct? If so how do you detect changes on an object? For a b...
Lobotomy asked 21/2, 2016 at 9:33
2
Solved
The release of AngularJS V1.7.1* introduces the new ng-ref directive. While this new directive enables users to easily do certain things, I see great potential for abuse and problems.
The ng-ref at...
Somite asked 6/8, 2018 at 21:2
3
Solved
Im trying to send a message from within a directive to its parent controller (without success)
Here is my HTML
<div ng-controller="Ctrl">
<my-elem/>
</div>
Here is the code i...
Gangling asked 25/9, 2013 at 10:11
1
Solved
With the release of AngularJS V1.7, the option to pre-assign bindings to has deprecated and removed:
Due to 38f8c9, directive bindings are no longer available in the constructor.
To migrate your c...
Qnp asked 10/7, 2018 at 20:35
3
Solved
I would like to know if in Angular 1.5, when you use components, there is a simple way to bind an attribute which is a boolean without be converted as string with @.
For example, I have two compon...
Edelsten asked 16/4, 2016 at 17:12
3
Solved
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 fu...
Robustious asked 4/11, 2015 at 3:57
4
Solved
How to tell PhpStorm/WebStorm that $ctrl in a template is known and also help it decide the controller it belongs to (maybe using jsdoc)?
I create components in this manner in Angular 1.5:
angula...
Paste asked 15/3, 2016 at 9:26
1
I have a component like follows and would like to test what the $onChange method does in case the binding myBinding changes.
I tried the whole morning, but could not find a way to solve this.
a...
Engraving asked 4/1, 2018 at 18:56
4
Solved
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?
app.com...
Yajairayajurveda asked 20/1, 2016 at 4:5
4
Solved
I don't understand why $onChanges isn't kicked off when I change a bound primitive in an input. Can someone see what I've done wrong, and explain this in an uncomplicated way? I made a plunkr of a ...
Lindeman asked 4/6, 2016 at 23:53
2
Solved
I have a Methode from an API. It returns a promise which resolves to an $ctrl(?) object. This objects should contain a measurement and will be updated whenever it receive a new data.
getMeasureme...
Silverside asked 10/10, 2017 at 9:44
1
Solved
Except for adding the class in html.
I mean something like that:
In html
<my-component></my-component>
In js
angular.module('app').component('myComponent', {
template: '<div c...
Illation asked 5/7, 2017 at 12:28
1
Solved
I'm trying to dynamically compile an Angular component using $compile, but the scope isn't passed to the components scope, but to the $parent scope instead.
Here is a simple component that binds to...
Creamcups asked 30/5, 2017 at 12:35
7
I am experimenting with the .component() syntax in Angular 1.5.
It seems that the latest fashion is to code the controller in-line in the component rather that in a separate file, and I can see th...
Leroylerwick asked 17/2, 2016 at 8:42
2
Solved
I am working on getting up to speed with 1.5 angular components. I have been following todd Motto's videos to get a start on components along with angular's documentation https://docs.angularjs.org...
Uncritical asked 18/2, 2016 at 15:28
3
I'm trying to unit test a (child) controller of an AngularJS 1.5 (with Webpack) component that requires a parent component and a controller from another module.
Child controller structure:
funct...
Saluki asked 29/6, 2016 at 9:5
2
I'm using [email protected] and resolve some resource at the route level for one of my component. The component works as expected but my test fails now.
Error
PhantomJS 2.1.1 (Linux 0.0.0) m...
Bummer asked 21/11, 2016 at 9:48
1
When I use angular.component() to create the brand new component that angular 1.5 provides, there's no link function, so the old way of injecting ngModelController or any other controllers doesn't ...
Duluth asked 10/8, 2016 at 1:45
2
Solved
I started doing some research into using Angular2 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...
Uglify asked 23/12, 2015 at 0:10
2
Solved
Can I use more than one template in AngularJS 1.5 components ? I have one component having one attribute, so I want to load different template based on that attribute name.
How can I achieve loadin...
Dolorisdolorita asked 18/6, 2016 at 22:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.