{"id":20330088,"url":"https://github.com/redapesolutions/dirmortgage","last_synced_at":"2025-03-04T12:21:02.232Z","repository":{"id":27380933,"uuid":"30856811","full_name":"redapesolutions/dirMortgage","owner":"redapesolutions","description":"Angular directive for calculating mortgage loans...","archived":false,"fork":false,"pushed_at":"2015-02-16T05:09:10.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-14T15:19:27.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redapesolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-16T06:36:55.000Z","updated_at":"2015-02-28T06:39:29.000Z","dependencies_parsed_at":"2022-08-20T07:50:15.933Z","dependency_job_id":null,"html_url":"https://github.com/redapesolutions/dirMortgage","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2FdirMortgage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2FdirMortgage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2FdirMortgage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redapesolutions%2FdirMortgage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redapesolutions","download_url":"https://codeload.github.com/redapesolutions/dirMortgage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241844935,"owners_count":20029749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:14:54.964Z","updated_at":"2025-03-04T12:21:02.197Z","avatar_url":"https://github.com/redapesolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Mortgage Widget (dirMortgage)\nAngular directive for calculating mortgage loans...\n\n##### Disclaimer: Not a fan of interest rates in any financial/commercial transactions\n\n### How to use  \n\n#### Basic Example\n\n```html\n\u003cdiv dir-mortgage\u003e\u003c/div\u003e\n\nor\n\n\u003cdir:mortgage\u003e\u003c/dir:mortgage\u003e\n\nwith extra attributes\n\n\u003cdir:mortgage dm-template-url=\"\" dm-principal-amount=\"160000\"\u003e\u003c/dir:mortgage\u003e\n\n```\n\n- Other usable attributes\n\n```\ndmTemplateUrl - template url\ndmPrincipalAmount - prinicipal amount/mortgage amount\ndmDefaultRate - default interest rate per annum\ndmMinRate - minimum interest rate per annum\ndmMaxRate - maximum interest rate per annum\ndmMinYear - minimum year term\ndmMaxYear - maximum year term\ndmStepRate - defined increment pattern for interest rate values e.g. 0.5, 0.2, 1\ndmStepYear - defined increment pattern of years increase, see values above\ndmCurrency - set locale currency\n\n```\n\n#### Installation\n\n```javascript\n\nvar app = angular.module('yourAppName',['dirMortgage'])\n\n```\n\n#### Configs\n\n- Setting attributes could also be done through a provider\n\n```javascript\nvar app = angular.module('yourAppName',['dirMortgage']);\napp.config(function(dirMortgageServiceProvider){\n  dirMortgageServiceProvider.setTemplatePath('/path/to/template');\n});\n\n```\n- other usable provider setter functions\n\n```javascript\n\n  .setMinYear(float number)\n  .setMaxYear(float number)\n  .setStepYear(float number)\n  .setMinRate(float number)\n  .setMaxRate(float number)\n  .setStepRate(float number)\n  .setDefaultRate(float number)\n  .setDefaultPrincipalAmount(float number)\n  .setCurrency(string)\n\n```\n#### Bower Install\n\n```\nbower install angular-mortgage-widget\n\n```\n\n### More Details\n\n#### Setting Template Path\n\nBy default the template path as been set to, and can be found in:\n\n```\n  templates/dirMortgage.tpl.html\n\n```\n\nTo rewrite or modify template, please do take a cue from the default one provided, \nwith regards to scope vars and actions.\n\n#### Default Minimum and Maximum Values\n\n- min year = 1\n- max year = 30\n- min rate = 0.5\n- max rate = 10\n- default rate = 4\n- step rate (step for interest rate increment) = 0.1\n- step year (step for year increase) = 0.1\n- currency = '$'\n- principal amount = 0.0\n\nAll, as depicted above, can be modified through the ```dirMortgageServiceProvider``` mutator methods, or added as attributes when implementing the directive\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredapesolutions%2Fdirmortgage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredapesolutions%2Fdirmortgage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredapesolutions%2Fdirmortgage/lists"}