{"id":19977955,"url":"https://github.com/devbyray/angularjs-first-setup","last_synced_at":"2026-05-10T13:47:21.850Z","repository":{"id":30952533,"uuid":"34510630","full_name":"devbyray/angularjs-first-setup","owner":"devbyray","description":"Demo code for a first setup of an AngularJS application","archived":false,"fork":false,"pushed_at":"2015-04-24T10:00:24.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T10:11:55.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://codepen.io/rsschouwenaar/pen/QbWoRv","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbyray.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-24T09:42:44.000Z","updated_at":"2015-04-24T10:01:34.000Z","dependencies_parsed_at":"2022-09-21T11:02:38.851Z","dependency_job_id":null,"html_url":"https://github.com/devbyray/angularjs-first-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fangularjs-first-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fangularjs-first-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fangularjs-first-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbyray%2Fangularjs-first-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbyray","download_url":"https://codeload.github.com/devbyray/angularjs-first-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411543,"owners_count":19958753,"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-13T03:29:53.858Z","updated_at":"2026-05-10T13:47:16.826Z","avatar_url":"https://github.com/devbyray.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Setup\n\n## Project structure:\n- app\n    - src\n        - js\n            - libs\n                - angular.min.js\n            - app.js\n        -sass\n            - sass-structure\n    - index.html\n- gulpfile.js\n- package.json\n- readme.md\n\n## How to install\n\n1. run `(sudo) npm install`\n2. run `gulp`\n3. Then the browser will start.\n\n## How to start an AngularJS app\n\nIn this example I already did the setup. But the most important things to do is:\n\n1. Include the angular.js file \u0026 app.js file in the html (on the bottom of the page) `\u003cscript src=\"assets/js/libs/angular.min.js\"\u003e\u003c/script\u003e\u003cscript src=\"assets/js/app.js\"\u003e\u003c/script\u003e`. But i prefer to concat all the .js files into 1 file. So that's why the index.html file only include app.js.\n2. In the html replace the `\u003chtml\u003e` with `\u003chtml ng-app\u003e` to let Angular know that this is the Angular Root element.\n3. Then in your html place the following expression: `1 + 2 = {{ 1 + 2 }}`. When AngularJS is loaded, it will do the math for you. [demo](http://codepen.io/rsschouwenaar/pen/QbWoRv)\n4. In the app.js place this code to begin the application:\n`var app = angular.module(\"app\", []);`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbyray%2Fangularjs-first-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbyray%2Fangularjs-first-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbyray%2Fangularjs-first-setup/lists"}