Re: [AngularJS] Re: Error in Mat-Stepper implementation

2018-10-19 Thread Partha Majumdar
Ok. I will try as I have never used it before.
Partha Majumdar
http://www.partha.majumdar.org



On Fri, Oct 19, 2018 at 11:37 PM Sander Elias  wrote:

> Hi Partha,
>
> Can you reproduce your issue on a stackblitz
> ?
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To post to this group, send email to angular@googlegroups.com.
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Error in Mat-Stepper implementation

2018-10-19 Thread Sander Elias
Hi Partha,

Can you reproduce your issue on a stackblitz 
?

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Error in Mat-Stepper implementation

2018-10-19 Thread Partha Majumdar

Dear Sir/Madam,

I have written a program in Angular 6 which has 4 stage Mat-Stepper. In the 
third stage, I call the Node.JS service to write data to Database. The 
situation is that if the Node Service call fails, then the 4th stage 
MAt-Stepper is displayed properly as expected. However, if the Node service 
writes to the DB properly, the Mat-Stepper resets to returns to the 1st 
stage.

I have been trying to debug for the last 2 days. However, I have made to 
headway in fixing this.

Request you to suggest what could be the issue.

I can share the code if anyone wants to have a look.

Thanks in advance.

Regards,
Partha

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to live build an angular workspace project

2018-10-19 Thread Christophe HOARAU
Yes but I'm making quite a lot of changes across lots of libs. If I could 
build an app package using libs source code directly I could reduce my 
build time by 100.


On Friday, October 19, 2018 at 7:16:24 PM UTC+4, Sander Elias wrote:

> Hi Christophe,
>
> Yes, once your libs are build, you don't need to rebuild them anymore, 
> unless you make changes to them.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] AngularJS: Using directive from inside another directive

2018-10-19 Thread jknapp


Hi all, I'm new so greetings! I'm trying to create some dynamic HTML using 
directives. A simple case worked fine in the case of a single directive but 
now I'm trying to get a little fancier and I'm not sure how this should 
work. 

Each of the directives below will need to apply ng-model bindings in the 
elements they create to whatever controller is assigned to the page they 
are on.

Looking at the code below, picture an HTML page with some existing content, 
which then has an element like this defined at the bottom of it:



I had directiveOne compile and append additional elements to the page, and 
that worked. What I want to do now is to have directiveOne compile the same 
elements to the page, plus an additional one that itself is assigned a 
directive. When expanded out, it should end up looking something like this 
(this is just an example):





Option



The reason for the two directives is that there will be some code executed 
in there to figure out what the elements should actually look like. 
Ultimately I want directiveOne to make use of a series of little directives 
and not just directiveTwo.

As of right now, here are the two directives, pared down for (I hope) 
clarity:

angular.module('myApp').directive('directiveOne', function ($compile) {
return {
restrict: 'EAC',
scope: '=',
templateUrl: '/basePage.html',
compile: function(element, attr) {
  var jsonObj = { test: 'TestData' };
  return function(scope, element, attr) {
var elem = "";
$compile(elem)(scope);
element.append(elem);
  }
}
};});

angular.module('myApp').directive('directiveTwo', function ($compile) {
return {
restrict: 'EAC',
scope: '=',
templateUrl: '/subPage.html',
compile: function(element, attr) {
return function(scope, element, attr) {
// Possibly make changes to subPage.html
// before returning
var elem = "";
$compile(elem)(scope);
element.append(elem);
}
}
};});

To a certain degree this works in that if I inspect the HTML afterwards I 
see this:




But the code inside directiveTwo was never executed, and so the div is 
empty. Is there a way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to live build an angular workspace project

2018-10-19 Thread Sander Elias
Hi Christophe,

Yes, once your libs are build, you don't need to rebuild them anymore, 
unless you make changes to them.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] uploaded image is reflecting after re starting ng serve command in angular 6

2018-10-19 Thread Vishnu Bidarakundi

0down votefavorite 


I am working on angular 6 and node project , after uploading image is 
saving in folder /assets/Images/uploades/image.jpg.

uploaded images are dynamic displaying like this



here {{ImagePath}} is localhost:4200/assets/Images/uploads/ and 
{{serviceImage}} Image name coming from the database .

Now the problem is after uploading the images , I have edit option to edit the 
form there other information is there including the image i want to display 
previously uploaded image , now what happening is immediately after clicking 
"edit" button image is not displaying ...saying 404 Error image is not found .

That Image is displaying only after the re starting with "ng serve" command .

I am using angular 6.1.0 and angular cli is 6.1.2


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to live build an angular workspace project

2018-10-19 Thread Christophe HOARAU
Hi,

Another way that could help me, would be to be able to compile the 
application without having to build each individual libraries. That was 
what I was doing with webpack, the build process was building ts file 
linked in node_modules.
This way I only had to build my applications, never the libraries. Is it 
possible to do so with angular-cli ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.