[AngularJS] Re: deploying an angular 2 app

2016-09-16 Thread user12345
HI 

You can create a war file and deploy it with the help of jboss. Actually i 
would suggest to de-couple both front end(Angular) and backend(Any server 
technology) code and deploy them as separate wars. You can use gulp for 
creating a war which will bundle all the js,css and other files which is 
required for rendering of the application


On Thursday, September 15, 2016 at 2:30:06 PM UTC+5:30, norricorp wrote:
>
> Hi,
> new to angular. I was wondering how to deploy an angular app to a web 
> server? Is there documentation on this.
> I have experience with Java and Tomcat applications but not sure how it 
> works where all of the logic is in the front end.
> Regards,
> John
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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] Angular : How to detect changes made to form automatically

2016-09-15 Thread user12345
Hi All

Is there any way to detect whether the user has made any change to the form 
using angular form .?

example :

Step 1 : Value for name (type = input) will be : "test".(By default, the 
ng-model will be defaulted as value will be retrieved from API Response).
Step 2 : User has changed value to "test1"
Step 3 : User has changed value to "test".

Is there any attribute inside that form where i can check that the user has 
not changed anything ideally for input directive. I think , dirty, 
pristine, touched elements inside the form will not be used for this 
scenario.

Step 4 : User has changed value to "hello". 
Step 5 : User has changes value to "test"'

So what i am looking is , is there any attribute where i can check whether 
the user has made any change to the input, like for
Step 2-->value should be true
Step 3-->value should be false
Step4-->value should be true.

Thanks !

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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] Removing Event Listeners in Angular JS

2015-11-09 Thread user12345


I am using the below event listener in my custom directive code to execute 
certain logic once that event is triggered.

element.on("change", function(e) {//Logic goes here}

I want to know whether do we need to manually destroy these listeners or 
will angular destroys these listeners. If we need to manually remove, Could 
you help me how to remove these event listeners.?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Memory Leak while using ng-options (Custom Directive)

2015-11-03 Thread user12345


Hi

 

In my application(1.3.17 version), we have lot of dropdowns in HTML Pages 
which were created as a part of custom directive(Here the drop down is 
created with the help of custom directive). The data in the dropdowns are 
being filled with the data which we receive as a part of Rest API Call. We 
observed that when we navigate from page which contains drop down to home 
page , we see that memory is still being held by the references and thus 
causing lot of memory leak. 

 

Please find details below :

 

1)File from where custom dropdown will be called :

 

< customDropDown value="request.getID" list="getID">

 

2)customDropDown.directive.js:

 

function customDropDown() {

  return {

restrict: 'E',

scope: {

  id: '@',

  list: '@',

  value: '=',

  form: '=',

  disabled: '@',

  empty: '@'

},

templateUrl: 'customDropDown.html',

controller: function($scope, $rootScope) {

  $scope.disabled = $scope.disabled ? ($scope.disabled === 'true') 
: false;

  $scope.empty = $scope.empty ? ($scope.empty === 'true') : true;

  $scope.model = {value: $scope.value };

  

   //Instead of APi call, I am just Hard Coding 
couple of value ("List" as query parameter in API Call and the data which 
we receive will be huge

   

  $scope.item= 
{"id":1,"name":"one","value":"one"},{"id":2,"name":"two","value":"two"},{"id":3,"name":"three","value":"three"};

 



  });

}

  };

}

 

  })();

 

 

3)customDropDown.html:

 



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.