[AngularJS] Re: http.get request return master.html file instead of data from the database.
Hi sander, this issue resolved by changing the order of the code from app.get('*',function(req, res){ res.sendFile('master.html', { root: path.join(__dirname, '/public/views/') }); }); routes(app, mongoose); to routes(app, mongoose); app.get('*',function(req, res){ res.sendFile('master.html', { root: path.join(__dirname, '/public/views/') }); }); thanks for your time to help me ! On Saturday, 21 March 2015 14:03:51 UTC+8, Sander Elias wrote: Hi John, This line: app.get('*',function(req, res){...} Will return your master file FOR EVERY REQUEST! So whatever you do, you will get your master.html. Hope this helps Regards Sander -- 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] Re: angular and chrome.fileSystem
Hi AlexL, Return the entries var, and assign it to a scope var. Something like: scope.entries = loadDirEntry(theEntry). Does that help a bit. Building a plunk is a bit moot for this, as it only works in chrome apps ;) Regards Sander -- 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] ngRoute issue on android 2.3
Hi everyone, I'm testing an basic AngularJs app on android 2.3. and i got this error Uncaught Error: [$injector:modukerr] Failed to instantiate Module MyApp due to: Error [$injector:nomod] Module MyApp is not available. i use as dependency ngRoute. Help please. on desktop this basic app work fine -- 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.
Re: [AngularJS] Re: angular and chrome.fileSystem
After some test, it works good : angular.module('DirectoryBrowser', []) .controller('DirectoryBrowserCtrl', ['$scope', '$http', function ($scope, $http) { $scope.openModalChooseDirectory = function() { chrome.fileSystem.chooseEntry({type: 'openDirectory'}, function(theEntry) { if (!theEntry) { console.log('No Directory selected.'); return; } $scope.entryChoosen = theEntry; $scope.$apply(); // use local storage to retain access to this file loadDirEntry(theEntry, $scope); }); }; } ]) ; // for directories, read the contents of the top-level directory (ignore sub-dirs) // and put the results into the textarea, then disable the Save As button function loadDirEntry(_chosenEntry, $scope) { chosenEntry = _chosenEntry; if (chosenEntry.isDirectory) { var dirReader = chosenEntry.createReader(); var entries = []; // Call the reader.readEntries() until no more results are returned. var readEntries = function($scope) { console.log($scope); dirReader.readEntries (function(results) { if (!results.length) { textarea.value = entries.join(\n); saveFileButton.disabled = true; // don't allow saving of the list displayEntryData(chosenEntry); } else { results.forEach(function(item) { entries.push(item); }); $scope.entries = entries; $scope.$apply(); readEntries($scope); } }, errorHandler); }; readEntries($scope); // Start reading dirs. } } Thanks On Saturday, March 21, 2015 at 11:56:44 AM UTC+1, Alexandre LESAGE wrote: Hi Sander Elias, Sorry I have not thought about making plunker. I would have like to return entries of loadDirEntry(theEntry) but in openModalChooseDirectory $scope is undefined. How can I pass $scope into function ? Thank for your help. AlexL On Sat, Mar 21, 2015 at 8:21 AM Sander Elias sanderel...@gmail.com wrote: Hi AlexL, Return the entries var, and assign it to a scope var. Something like: scope.entries = loadDirEntry(theEntry). Does that help a bit. Building a plunk is a bit moot for this, as it only works in chrome apps ;) Regards Sander -- You received this message because you are subscribed to a topic in the Google Groups AngularJS group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/CPGWL1E35IY/unsubscribe. To unsubscribe from this group and all its topics, 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. -- 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.
Re: [AngularJS] Re: Learning AngularJS: Why using nodeJS?
Hello Anthony, Let me rephrase the question. I read this discussion in stackoverflow.com and I learn the following: Node can't run on any hosting providers, you can however deploy Nodejs projects in PAAS sites as Heroku and Linode Please take a look: http://stackoverflow.com/questions/16554289/can-node-js-run-in-any-hosting-provider Do you have any useful tip or tick to run node in any hosting provider? Tk you! Paulo Le Bunny On Sat, Mar 21, 2015 at 6:28 AM, Anthony Ettinger ettin...@gmail.com wrote: node can be installed with a few commands. what do you mean it can't be installed on a server in an easy way? On Friday, March 20, 2015 at 12:42:50 AM UTC-7, paulowe...@gmail.com wrote: Hello, I become a huge AngularJS fan recently I thing this is the future of web-development and that you are in the right direction. But there are many courses that are applying AngularJS with nodeJS but to be honest I am not getting it... Why to develop AngularJS with NodeJS if you can't publish it directly on http servers. NodeJS can't be install in an http server in an easy way. Personally I am not fully interested in publish my apps with Heroku or similar. Am I learning AngularJS in the right/best way? I want to create more interaction and SPA apps in websites that are already hosted in a normal http server. Please give some tips. Tks in advance Paulo Le Bunny -- You received this message because you are subscribed to a topic in the Google Groups AngularJS group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/ecRmYZOEvfs/unsubscribe. To unsubscribe from this group and all its topics, 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. -- 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] Angular 2 with new Router
I would be really interested when the new Router is useable with current Angular 2. Has anybody info about this?? -- 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.
Re: [AngularJS] Re: Learning AngularJS: Why using nodeJS?
Hi Paulo, Well, There are a lot of hosting providers that can host nodeJS applications. However, they seldom allow that on shared(read cheap) hosting offers. If you have your own (virtual) computer hooked up to the net, you can deploy to that easily. You you need a hosted(virtual) computer, where you can put whatever you fancy. Or you can go with a specialized provider (like heroku/nodejutsu/linode etc) Basically the last few, give your shared hosting with support for nodejs apps. But as we have established already, you don't need node to deploy an angular app. Angular is backend-agnostic, this means you can connect it up with whatever you fancy. (and if you know a bit of PHP, you can host on most shared host plans!) Regards Sander -- 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.
Re: [AngularJS] Re: angular and chrome.fileSystem
Hi Sander Elias, Sorry I have not thought about making plunker. I would have like to return entries of loadDirEntry(theEntry) but in openModalChooseDirectory $scope is undefined. How can I pass $scope into function ? Thank for your help. AlexL On Sat, Mar 21, 2015 at 8:21 AM Sander Elias sanderel...@gmail.com wrote: Hi AlexL, Return the entries var, and assign it to a scope var. Something like: scope.entries = loadDirEntry(theEntry). Does that help a bit. Building a plunk is a bit moot for this, as it only works in chrome apps ;) Regards Sander -- You received this message because you are subscribed to a topic in the Google Groups AngularJS group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/CPGWL1E35IY/unsubscribe. To unsubscribe from this group and all its topics, 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. -- 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.
Re: [AngularJS] Re: Learning AngularJS: Why using nodeJS?
Hello Sander, Thank you so much for your clarification. Yes it makes sense for me. All the best! Paulo Le Bunny On Fri, Mar 20, 2015 at 3:23 PM, Sander Elias sanderel...@gmail.com wrote: Hi Paulo, Well, actually, you don't need node at all. Not for your app at least. A lot of the tools you use to build/test your app use node. So yes, there is merit in having some knowledge off node, and No, it is not needed to run or use an Angular app. So, don't learn node if you just want to deploy angular apps, it's a waist of time. However, learn the tool you need to build your app (gulp/grunt/karma/protractor/...). Most of those tools use node. However you are not required to learn node to use those tools. Does that makes sense to you? If not, don't hesitate to ask! Regards Sander -- You received this message because you are subscribed to a topic in the Google Groups AngularJS group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/ecRmYZOEvfs/unsubscribe. To unsubscribe from this group and all its topics, 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. -- 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] angular sometimes not initialize
Hi! I have some problems with AngularJS. You can see screenshot from my test app. Sometimes, after page reload i have that resault! Binding and other not working. Console is empty. A have not errors... p.s. sorry for my English https://lh5.googleusercontent.com/-DpwYQujb9PI/VQ24_uhh62I/AQI/TJExw48bH10/s1600/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%2B%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%2B%D0%BE%D1%82%2B2015-03-21%2B20%3A23%3A54.png -- 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] Re: Protractor browser.debugger(); not pausing test
Having the same issue. I did find this: https://github.com/angular/protractor/issues/1790 And it looks as it got juliemr attention so I'm hope it's a know 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 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.