Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Arpit Agarwal | 45fd705 | 2016-08-16 09:33:22 -0700 | [diff] [blame] | 19 | (function () {
|
| 20 | 'use strict';
|
| 21 | angular.module('xos.UITutorial')
|
| 22 | .service('LessonInfo', function(){
|
| 23 |
|
| 24 | this.lessonCatalogue = (id) => {
|
| 25 | let lessonData = [
|
| 26 | {
|
| 27 | id: 0,
|
| 28 | text: 'lesson 0 info',
|
| 29 | solution: 'Hello World'
|
| 30 | },
|
| 31 | {
|
| 32 | id: 1,
|
| 33 | text: 'lesson 1 info',
|
| 34 | solution: 'Hello World'
|
| 35 | },
|
| 36 | {
|
| 37 | id: 2,
|
| 38 | text: 'lesson 2 info',
|
| 39 | solution: 'Hello World'
|
| 40 | },
|
| 41 | {
|
| 42 | id: 3,
|
| 43 | text: 'lesson 3 info',
|
| 44 | solution: 'Hello World'
|
| 45 | },
|
| 46 | {
|
| 47 | id: 4,
|
| 48 | text: 'lesson 4 info',
|
| 49 | solution: 'Hello World '
|
| 50 | },
|
| 51 | {
|
| 52 | id: 5,
|
| 53 | text: 'lesson 5 info',
|
| 54 | solution: 'Hello World'
|
| 55 | }
|
| 56 | ];
|
| 57 | return lessonData[id];
|
| 58 | }
|
| 59 |
|
| 60 | });
|
| 61 | } )(); |