[AngularJS] Re: How to destroy particular scope

2015-04-29 Thread Sander Elias
Hi Sasikumar, $scope is a normal JavaScript object. properties on that are not new $scope’s. just POJO https://www.google.nl/search?q=POJOoq=POJOaqs=chrome..69i57sourceid=chromees_sm=0ie=UTF-8 properties. So do a delete $scope.names if you want to remove a property. Regards Sander ​ --

Re: [AngularJS] Re: ng-repeat

2015-04-29 Thread Sander Elias
Hi Kiran, don't mix in jQuery stuff like you do there. Don't do dom manipulation at all, unless there is no other way. first thing, change your directive to a template directive. it will take care of the compilation. Then prepare you data, so you can render it easy in your template. The code

[AngularJS] How to destroy particular scope

2015-04-29 Thread Sasikumar Veeraiah
Hi All, In angular it is possible to destroy particular scope preset in controller?. *For eg:* function MainController($scope) { $scope.names = [ {first: John, last: Smith}, {first: Jane, last: Smith} ]; $scope.state = { selected: undefined }; here , for some reason i

Re: [AngularJS] basic code not working

2015-04-29 Thread Kiran A
hi, the below code work's as your requirement !DOCTYPE html html ng-app=myApp script src=media/js/lib/angular.min.js/script body div ng-controller=myCtrl name: input type=text ng-model=namebr br hello: {{name}} /div script var app = angular.module('myApp', []); app.controller('myCtrl',

[AngularJS] Re: ng-repeat

2015-04-29 Thread Sander Elias
Hi Kiran, Based on your question, I would say, you need to $compile https://docs.angularjs.org/api/ng/service/$compile your html before you add it to your document. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

Re: [AngularJS] Re: ng-repeat

2015-04-29 Thread Kiran A
Below code is my directive 1.i am loading Html based on the requested page so i m not getting how compile that corpo.directive('corpInbox', function(companyFactory){ var directive = {}; directive.restrict = 'A'; directive.scope = { model : '=mgModel' }

Re: [AngularJS] Re: ng-repeat

2015-04-29 Thread Kiran A
i am using this Directive in many places so i need to do dom manipulation in the directive the directive is working fine...just i am not getting how to compile the Html file which i am loading via Ajax On Wed, Apr 29, 2015 at 3:05 PM, Sander Elias sanderel...@gmail.com wrote: Hi Kiran, don't

Re: [AngularJS] Re: set same height of divs

2015-04-29 Thread Pushpendra IndiaMART
Thank you so much Sander, its working. Thanks Best Regards, *Pushpendra* | Sr. Software Programmer +91-9718186128 Indiamart Intermesh Ltd. | Ext-238 Advent Navis Business Park | Plot No.7, 8th Floor | Sector -142. Greater Noida Expressway | Noida , UP – 201305 On Tue, Apr 28, 2015 at 3:58 AM,

Re: [AngularJS] Mutliple Module dependency

2015-04-29 Thread Noman Yaqoob
I know I can't use multiple, I am trying to say that when I add two dependency in a single module like this, var topmodule= angular.module('topmodule', ['firstmudule', 'secondmudule']); my code doesnt work or you can say these module doesnt load. On Wed, Apr 29, 2015 at 11:03 AM, Kiran A

[AngularJS] Re: How does app.config() work?

2015-04-29 Thread Luke Kende
You don't, it will make the connection for you. Just put ng-view somewhere in the html below the navbar, the link click will be caught by angular, then look at your config and decide what template/controller to load at the point of ng-view element. (consider using html5mode:

[AngularJS] basic code not working

2015-04-29 Thread Doga
I've just started learning AngularJS and couldn't run below code. Anyone can tell me what I am missing in there !DOCTYPE html html ng-app head titleHello World/title script src=media/js/lib/angular.min.js/script /head body div ng-controller=MyController Name: input type=text ng-model=name/ Hello

Re: [AngularJS] Mutliple Module dependency

2015-04-29 Thread Kiran A
hi, you cant use two module instead You can create a top level module that will have your two modules as injected dependencies var topmodule= angular.module('topmodule', ['firstmudule', 'secondmudule']); and then in your html use: ng-app=topmodule On Wed, Apr 29, 2015 at 11:03 AM, Noman

Re: [AngularJS] Mutliple Module dependency

2015-04-29 Thread Kiran A
hi, you cant use two module instead You can create a top level module that will have your two modules as injected dependencies var topmodule= angular.module('topmodule', ['firstmudule', 'secondmudule']); and then in your html use: ng-app=topmodule On Wed, Apr 29, 2015 at 11:33 AM, Kiran A

Re: [AngularJS] Mutliple Module dependency

2015-04-29 Thread Kiran A
when you add two dependency in single module it will work only when you mansion topmodele in html (ng-app=topmodule) On Wed, Apr 29, 2015 at 11:39 AM, Noman Yaqoob nomanmu...@gmail.com wrote: I know I can't use multiple, I am trying to say that when I add two dependency in a single module

[AngularJS] Re: How to make angular application crawlable to search engines

2015-04-29 Thread Daniel Lidström
You need to detect the search engine when it comes to visit. You can do this by adding a meta element to your page: meta name=fragment content=! With this element googlebot will visit your page like this: http://example.com?_escaped_fragment_= You'll need to involve your backend to serve

[AngularJS] How to make angular application crawl-able to search engines

2015-04-29 Thread Abdul Ahad Jeyemby
Can anyone tell me the steps to make page crawl-able to search engines. Thanks, PS: using PHP YII2 rest as backend. -- 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

[AngularJS] Multiple JavaScript files accessing same Controller

2015-04-29 Thread Varun Tyagi
Hi I have a scenario where I have different views and I want them to have their respective JS files but all sharing the same controller. Is it possible in angular? Any help is appreciated. Thanks Varun Tyagi -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: Render hierarchical data in a table

2015-04-29 Thread Slava Fomin
I've created a Plunk: http://plnkr.co/edit/0fkNLfxgQFt5KBcLzvEx?p=preview to demonstrate the issue. -- 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

[AngularJS] Render hierarchical data in a table

2015-04-29 Thread Slava Fomin
Hello! I've encountered an advanced use-case in my practice that I have problems implementing in Angular.js, so I'm in need of assistance. It is required to render a hierarchical data in a single HTML table. I've found this Q/A:

[AngularJS] handling code updates - force reload expired javascript code

2015-04-29 Thread Tim Benke
Hello, we're developing a largish angular application and our users are often staying a long time in the application. We're wondering how to make sure there always using the latest version of the angular code instead of the stale version they got on their first page access. As far as I can

[AngularJS] ui-select autofocus

2015-04-29 Thread Antonio Gil
Hi! I'm using ui-select (v. 0.8.3) and I want set the focus on init. How I can do it? I can't use other version :S. Thanks and Regards! -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving emails from