My component object looks like this:  var options = {     bindings: {         title: '<',         rows: '<'     },     controller: registers,     templateUrl: function ($element, $attrs) {         return '/app/dashboard/regi...
I have an Angular 1.5.3 component that appears to not update the values for a two way binding. My controller changes the values which are passed to the component.  The component appears to read the default values when the controller is initialized bu...
How can I listen to angular component binding change and perform actions?  angular.module('myapp')     .component('myComponent', {         templateUrl: 'some.html',         controller: MyController,         controllerAs: '...
Here's one thing I'm used to do with angular directives  angular.module('app.directives').directive('login', ['$templateCache', function ($templateCache) {     return {         restrict: 'E',         template:...
I'm using AngularJS 1.5.8. I have "myParent" and "myChild" components. In my view, i've 1 parent and 2 children inside that parent. So my question is: I wanna have instances of children "myChild" components in "myP...
I wanted to use Angular 1.5's component to get benefit from its one-way binding: <hero-detail hero="ctrl.hero" save="ctrl.save(hero)"></hero-detail>. But, as Todd Motto points on his blog: Todd Motto's blog: One-wa...
I want to use a function from a component inside my page.controller First, I don't know if it is possible? and Second, if it is possible, how should I do that?  Here I have have function inside the component.controller called checkStatus, I want...
I'm developing a  modular angular application with I defined I folder path (constant : BASE_PATH : "path/to/folder") in angular-module-1 module. I want to re-used this constant in a angular component located in another module (angular-mod...
Currently I have this component definition:      var controller = ['$http', '$timeout', '$scope', function($http, $timeout, $scope) {         this.isInvalid = function() {             return $scope.changePinForm.$invalid;...
I am using AngularJS 1.5.1 with ui-router 0.3.1  I am trying to get the current state from a controller inside a component.  I need to do something in my component's template html based on the current state.  It seems, however, that I cannot "...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.