Hello Guys, I'm a newbie here. I'm taking Information Technology major in Programming, I'm from Philippines. I join this site to improve or to develop my knowledge about Android Programming, even though I'm taking Programming it doesnt mean that I'm a good programmer. I want to develop my own skills and knowledge about Android, I really want to learn guys. So please, can someone guide me to my journey in Android Programming. I wish that there are some willing to contribute their knowledge and help to me. Thanks in advance :) Have a good day.

Hello Guys, I'm a newbie here. I'm taking Information Technology major in Programming, I'm from Philippines. I join this site to improve or to develop my knowledge about Android Programming, even though I'm taking Programming it doesnt mean that I'm a good programmer. I want to develop my own skills and knowledge about Android, I really want to learn guys. So please, can someone guide me to my journey in Android Programming. I wish that there are some willing to contribute their knowledge and help to me. Thanks in advance :) Have a good day.

Android android 0 Answer

Explain ngModel and How it is Used?

I am just getting started with angular and ran into the directive below. I read a few tutorials already and am reading some now, but I really don't understand what "require: ngModel" does, mainly because I have no idea what ngModel does overall. Now, if I am not insane, it's the same directive that provides two way binding (the whole $scope.blah = "blah blah" inside ctrl, and then {{blah}} to show 'blah blah' inside an html element controlled by directive.

That doesn't help me here. Furthermore, I don't understand what "model: '@ngModel' does. @ngModel implies a variable on the parents scope, but ngModel isn't a variable there.

tl;dr:

  1. What does "require: ngModel" do?
  2. What does "model : '@ngModel'" do?

*auth is a service that passes profile's dateFormat property (irrelevant to q)

Thanks in advance for any help.

 

angular.module('app').directive('directiveDate', function($filter, auth) {

    return {
        require: 'ngModel',
        scope:  {
            model : '@ngModel',
            search: '=?search'
        },
        restrict: 'E',
        replace: true,
        template: '<span>{{ search }}</span>',
        link: function($scope) {

            $scope.set = function () {
                $scope.text = $filter('date')($scope.model, auth.profile.dateFormat );
                $scope.search = $scope.text;
            };

            $scope.$watch( function(){ return $scope.model; }, function () {
                $scope.set();
            }, true );

            //update if locale changes
            $scope.$on('$localeChangeSuccess', function () {
                $scope.set();
            });
        }
    };
});

Android android, ng-model 1 Answer

Which database to use with android application

I am developing an android mobile application using eclipse. I need a database that resides on a desktop computer. I need to save and retrieve information to and from the database to the mobile application. I will be storing details such as login details, registration and location of user. SQLite will not be appropriate for this since the database created will only be accessible by itself. Can I use SQL server for this? I am new to android and I am not sure what database to use and how to save and retrieve information to and from the database to the mobile application. Please help.

Android android, database 0 Answer