Skip to content

Commit b24de74

Browse files
committed
update to angular 7
1 parent 644da81 commit b24de74

File tree

70 files changed

+4038
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4038
-43
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 AngularTemplates
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1-
# LearnAngularFromScratch
1+
# Angular Tutorial: Learn Angular from scratch step by step
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.8.
3+
This project is part of Learn Angular from scratch step by step tutorial where we explore from the basic concepts and why’s of Angular Framework to building a complete Angular 7 app using Angular Material components.
44

5-
## Development server
5+
In this Angular Tutorial we explain one by one the main building blocks of an Angular application as well as the best practices for building a complete mobile app with Angular. Also this tutorial shows how to setup your dev environment so you can start developing Angular apps in your computer right now.
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
Get the step by step free tutorial in https://angular-templates.io/tutorials/about/learn-angular-from-scratch-step-by-step
88

9-
## Code scaffolding
9+
**Please support this project by simply putting a Github star ⭐. Share this library with friends on Twitter and everywhere else you can. 🙏. Thanks**
1010

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
1211

13-
## Build
12+
## Installation
1413

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
14+
Run `npm install` to install all the required dependencies
1615

17-
## Running unit tests
16+
Then run `ng serve` to start a dev server.
17+
Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
1818

19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
2019

21-
## Running end-to-end tests
20+
![](https://s3-us-west-2.amazonaws.com/angular-templates/tutorials/learn-angular-from-scratch-step-by-step/learn-angular-from-scratch-step-by-step-categories.png)
2221

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
2422

25-
## Further help
23+
## Premium Angular Starter Apps
2624

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
25+
If you want to build a complex and robust Angular app you should check [Angular Admin Template](https://angular-templates.com/product/angular-admin-template) which is a super complete application to build your next angular project.
26+
27+
Created with performance and ease of development in mind, this Angular 7 web template is something you will love. It includes all the components that you might need inside a project and a detailed documentation on how to get started.
28+
29+
30+
![](https://s3-us-west-2.amazonaws.com/angular-templates/angular-duo-template/angular-admin-template-new-cover.jpeg)
31+
32+
## Free Angular examples
33+
34+
Find more Angular tutorials and starter apps in https://angular-templates.com

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"src/assets"
2828
],
2929
"styles": [
30+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
31+
"./node_modules/font-awesome/css/font-awesome.css",
3032
"src/styles.scss"
3133
],
3234
"scripts": [],
@@ -84,6 +86,7 @@
8486
"tsConfig": "src/tsconfig.spec.json",
8587
"karmaConfig": "src/karma.conf.js",
8688
"styles": [
89+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
8790
"src/styles.scss"
8891
],
8992
"scripts": [],
@@ -137,4 +140,4 @@
137140
}
138141
},
139142
"defaultProject": "learn-angular-from-scratch"
140-
}
143+
}

package-lock.json

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@
1212
"private": true,
1313
"dependencies": {
1414
"@angular/animations": "~7.2.0",
15+
"@angular/cdk": "~7.3.7",
1516
"@angular/common": "~7.2.0",
1617
"@angular/compiler": "~7.2.0",
1718
"@angular/core": "~7.2.0",
1819
"@angular/forms": "~7.2.0",
20+
"@angular/http": "^7.2.13",
21+
"@angular/material": "^7.3.7",
1922
"@angular/platform-browser": "~7.2.0",
2023
"@angular/platform-browser-dynamic": "~7.2.0",
2124
"@angular/router": "~7.2.0",
25+
"bootstrap-sass": "^3.4.1",
2226
"core-js": "^2.5.4",
27+
"font-awesome": "^4.7.0",
28+
"hammerjs": "^2.0.8",
2329
"rxjs": "~6.3.3",
30+
"rxjs-compat": "~6.3.3",
2431
"tslib": "^1.9.0",
2532
"zone.js": "~0.8.26"
2633
},

sdk/index.ts

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/* tslint:disable */
2+
/**
3+
* @module SDKModule
4+
* @author Jonathan Casarrubias <t:@johncasarrubias> <gh:jonathan-casarrubias>
5+
* @license MIT 2016 Jonathan Casarrubias
6+
* @version 2.1.0
7+
* @description
8+
* The SDKModule is a generated Software Development Kit automatically built by
9+
* the LoopBack SDK Builder open source module.
10+
*
11+
* The SDKModule provides Angular 2 >= RC.5 support, which means that NgModules
12+
* can import this Software Development Kit as follows:
13+
*
14+
*
15+
* APP Route Module Context
16+
* ============================================================================
17+
* import { NgModule } from '@angular/core';
18+
* import { BrowserModule } from '@angular/platform-browser';
19+
* // App Root
20+
* import { AppComponent } from './app.component';
21+
* // Feature Modules
22+
* import { SDK[Browser|Node|Native]Module } from './shared/sdk/sdk.module';
23+
* // Import Routing
24+
* import { routing } from './app.routing';
25+
* @NgModule({
26+
* imports: [
27+
* BrowserModule,
28+
* routing,
29+
* SDK[Browser|Node|Native]Module.forRoot()
30+
* ],
31+
* declarations: [ AppComponent ],
32+
* bootstrap: [ AppComponent ]
33+
* })
34+
* export class AppModule { }
35+
*
36+
**/
37+
import { JSONSearchParams } from './services/core/search.params';
38+
import { ErrorHandler } from './services/core/error.service';
39+
import { LoopBackAuth } from './services/core/auth.service';
40+
import { LoggerService } from './services/custom/logger.service';
41+
import { SDKModels } from './services/custom/SDKModels';
42+
import { InternalStorage, SDKStorage } from './storage/storage.swaps';
43+
import { HttpModule } from '@angular/http';
44+
import { CommonModule } from '@angular/common';
45+
import { NgModule, ModuleWithProviders } from '@angular/core';
46+
import { CookieBrowser } from './storage/cookie.browser';
47+
import { StorageBrowser } from './storage/storage.browser';
48+
import { UserApi } from './services/custom/User';
49+
import { QuestionApi } from './services/custom/Question';
50+
import { AnswerApi } from './services/custom/Answer';
51+
/**
52+
* @module SDKBrowserModule
53+
* @description
54+
* This module should be imported when building a Web Application in the following scenarios:
55+
*
56+
* 1.- Regular web application
57+
* 2.- Angular universal application (Browser Portion)
58+
* 3.- Progressive applications (Angular Mobile, Ionic, WebViews, etc)
59+
**/
60+
@NgModule({
61+
imports: [ CommonModule, HttpModule ],
62+
declarations: [ ],
63+
exports: [ ],
64+
providers: [
65+
ErrorHandler
66+
]
67+
})
68+
export class SDKBrowserModule {
69+
static forRoot(internalStorageProvider: any = {
70+
provide: InternalStorage,
71+
useClass: CookieBrowser
72+
}): ModuleWithProviders {
73+
return {
74+
ngModule : SDKBrowserModule,
75+
providers : [
76+
LoopBackAuth,
77+
LoggerService,
78+
JSONSearchParams,
79+
SDKModels,
80+
UserApi,
81+
QuestionApi,
82+
AnswerApi,
83+
internalStorageProvider,
84+
{ provide: SDKStorage, useClass: StorageBrowser }
85+
]
86+
};
87+
}
88+
}
89+
/**
90+
* Have Fun!!!
91+
* - Jon
92+
**/
93+
export * from './models/index';
94+
export * from './services/index';
95+
export * from './lb.config';
96+
export * from './storage/storage.swaps';
97+
export { CookieBrowser } from './storage/cookie.browser';
98+
export { StorageBrowser } from './storage/storage.browser';
99+

0 commit comments

Comments
 (0)